From f41c1898ebb20fe9cbe6708e6847a3e60973747d Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Tue, 8 Feb 2022 09:22:53 -0800 Subject: systems: default configuration for all systems --- modules/systems/nix.nix | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 modules/systems/nix.nix (limited to 'modules/systems/nix.nix') diff --git a/modules/systems/nix.nix b/modules/systems/nix.nix new file mode 100644 index 0000000..4b97121 --- /dev/null +++ b/modules/systems/nix.nix @@ -0,0 +1,17 @@ +{ lib, pkgs, ... }: + +{ + nix.extraOptions = '' + experimental-features = nix-command + ''; + + nix.settings = { + auto-optimise-store = true; + trusted-users = [ "root" "@wheel" ]; + }; + + nix.gc = { + automatic = true; + options = "--delete-older-than 14d"; + }; +} -- cgit v1.2.3