summaryrefslogtreecommitdiff
path: root/modules/nixos/common.nix
diff options
context:
space:
mode:
authorandromeda <andromeda@lenovo>2026-01-06 14:52:34 +0100
committerandromeda <andromeda@lenovo>2026-01-06 14:52:34 +0100
commitc9a5c521dbc7785aa4a6c1f410e547202075c13b (patch)
tree4362c945c787bac5d7d1bb63d04d7281bfddf6c8 /modules/nixos/common.nix
parent0a7e0c699e2f4fa07fb6dde0080da4eb3ac8f746 (diff)
stash
Diffstat (limited to 'modules/nixos/common.nix')
-rw-r--r--modules/nixos/common.nix16
1 files changed, 16 insertions, 0 deletions
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;
+}