summaryrefslogtreecommitdiff
path: root/system
diff options
context:
space:
mode:
authorKenny Ballou <kballou@devnulllabs.io>2020-10-19 16:12:28 -0600
committerKenny Ballou <kballou@devnulllabs.io>2020-10-23 14:03:28 -0600
commit955a973825f333dafe4cd226239507501b0808cc (patch)
treeef51389d1292a4ab18f28bb745bd509b9d1d454f /system
parent7861d583f62686b5f9d8615f627f038bf8d54b51 (diff)
downloadcfg.nix-955a973825f333dafe4cd226239507501b0808cc.tar.gz
cfg.nix-955a973825f333dafe4cd226239507501b0808cc.tar.xz
system/nix: add some nix configurations
enable automatic garbage collection and add wheel users to trusted nix users. Signed-off-by: Kenny Ballou <kballou@devnulllabs.io>
Diffstat (limited to 'system')
-rw-r--r--system/nix.nix16
1 files changed, 16 insertions, 0 deletions
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" ];
+ };
+ };
+}