summaryrefslogtreecommitdiff
path: root/modules/nixos/common.nix
diff options
context:
space:
mode:
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;
+}