From 955a973825f333dafe4cd226239507501b0808cc Mon Sep 17 00:00:00 2001 From: Kenny Ballou Date: Mon, 19 Oct 2020 16:12:28 -0600 Subject: system/nix: add some nix configurations enable automatic garbage collection and add wheel users to trusted nix users. Signed-off-by: Kenny Ballou --- system/nix.nix | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 system/nix.nix (limited to 'system') diff --git a/system/nix.nix b/system/nix.nix new file mode 100644 index 0000000..7d8971d --- /dev/null +++ b/system/nix.nix @@ -0,0 +1,16 @@ +{ config, pkgs, ... }: +{ + nix = { + trustedUsers = [ "@wheel" ]; + daemonIONiceLevel = 3; + daemonNiceLevel = 17; + gc = { + automatic = true; + options = "--delete-older-than 14d"; + }; + optimise = { + automatic = true; + dates = [ "Sun 03:45" ]; + }; + }; +} -- cgit v1.2.1