From ae3fa667bda75f11881c9209dc67226f98bcfd95 Mon Sep 17 00:00:00 2001 From: Tom van der Lee Date: Thu, 17 Sep 2026 11:05:45 +0200 Subject: Add cross-platform Nix flake bootstrap Adds a flake providing shared modules for NixOS and standalone home-manager, a copyable NixOS host template, and the OpenSpec tooling/change scaffolding used to plan this work. --- modules/nixos/common.nix | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 modules/nixos/common.nix (limited to 'modules/nixos') diff --git a/modules/nixos/common.nix b/modules/nixos/common.nix new file mode 100644 index 0000000..5427414 --- /dev/null +++ b/modules/nixos/common.nix @@ -0,0 +1,23 @@ +{ pkgs, lib, ... }: +{ + nix.settings.experimental-features = [ "nix-command" "flakes" ]; + + nix.gc = { + automatic = true; + dates = "weekly"; + options = "--delete-older-than 30d"; + }; + + # Per-host configuration.nix can override either of these without + # conflicting, since they're set with mkDefault here. + time.timeZone = lib.mkDefault "Etc/UTC"; + i18n.defaultLocale = lib.mkDefault "en_US.UTF-8"; + + programs.zsh.enable = true; + + users.users.tom = { + isNormalUser = true; + extraGroups = [ "wheel" ]; + shell = pkgs.zsh; + }; +} -- cgit v1.3