From c9a5c521dbc7785aa4a6c1f410e547202075c13b Mon Sep 17 00:00:00 2001 From: andromeda Date: Tue, 6 Jan 2026 14:52:34 +0100 Subject: stash --- modules/nixos/common.nix | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 modules/nixos/common.nix (limited to 'modules/nixos/common.nix') diff --git a/modules/nixos/common.nix b/modules/nixos/common.nix new file mode 100644 index 0000000..3c00de0 --- /dev/null +++ b/modules/nixos/common.nix @@ -0,0 +1,16 @@ +{config, ...}: { + # flakes usage + nix.settings.experimental-features = [ + "flakes" + "nix-command" + ]; + + # allows users to customize shell in `$XDG_CONFIG_HOME/shell` rather than + # needing /etc/shells. Useful for home-manager. Falls back. + programs.noshell.enable = true; + + # cleans /tmp to maintain a tidy system + boot.tmp.cleanOnBoot = true; + + networking.domain = config.networking.hostname; +} -- cgit v1.3