From b95720eb1bf3350369e924987c25bbb1205a8851 Mon Sep 17 00:00:00 2001 From: ene Date: Fri, 17 Feb 2023 16:53:15 +0100 Subject: Feat(services): Use default.nix files --- services/nix/default.nix | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 services/nix/default.nix (limited to 'services/nix/default.nix') diff --git a/services/nix/default.nix b/services/nix/default.nix new file mode 100644 index 00000000..27f9b170 --- /dev/null +++ b/services/nix/default.nix @@ -0,0 +1,22 @@ +{ + config, + lib, + pkgs, + ... +}: { + nix = { + gc = { + automatic = true; + dates = "daily"; + options = "--delete-older-than 3"; + }; + settings = { + auto-optimise-store = true; + experimental-features = ["nix-command" "flakes"]; + fallback = true; + + keep-failed = true; #keep failed tmp build dirs + pure-eval = true; # restrict file system and network access to hash + }; + }; +} -- cgit 1.4.1