aboutsummaryrefslogtreecommitdiffstats
path: root/modules/nixos
diff options
context:
space:
mode:
authorGravatar Tom van der Lee <tom@vanderlee.io>2026-09-17 11:05:45 +0200
committerGravatar Tom van der Lee <tom@vanderlee.io>2026-09-17 11:05:45 +0200
commitae3fa667bda75f11881c9209dc67226f98bcfd95 (patch)
tree1c2b16d8a97342fa608a15583ecc85ff0ec968eb /modules/nixos
downloaddesktop-flake-ae3fa667bda75f11881c9209dc67226f98bcfd95.tar.gz
desktop-flake-ae3fa667bda75f11881c9209dc67226f98bcfd95.tar.bz2
desktop-flake-ae3fa667bda75f11881c9209dc67226f98bcfd95.zip
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.
Diffstat (limited to 'modules/nixos')
-rw-r--r--modules/nixos/common.nix23
1 files changed, 23 insertions, 0 deletions
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 @@
1{ pkgs, lib, ... }:
2{
3 nix.settings.experimental-features = [ "nix-command" "flakes" ];
4
5 nix.gc = {
6 automatic = true;
7 dates = "weekly";
8 options = "--delete-older-than 30d";
9 };
10
11 # Per-host configuration.nix can override either of these without
12 # conflicting, since they're set with mkDefault here.
13 time.timeZone = lib.mkDefault "Etc/UTC";
14 i18n.defaultLocale = lib.mkDefault "en_US.UTF-8";
15
16 programs.zsh.enable = true;
17
18 users.users.tom = {
19 isNormalUser = true;
20 extraGroups = [ "wheel" ];
21 shell = pkgs.zsh;
22 };
23}