summaryrefslogtreecommitdiff
path: root/odin.nix
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2018-04-30 11:56:59 +0200
committerGregor Kleen <gkleen@yggdrasil.li>2018-04-30 11:56:59 +0200
commite58370464efbe2672246610c88e91dd28afa6cfb (patch)
tree10f30179eeff1a4433f2e5c84514b705cc6953e3 /odin.nix
parent6859463daaf422d253b55e480a0861fe066090ab (diff)
downloadnixos-e58370464efbe2672246610c88e91dd28afa6cfb.tar
nixos-e58370464efbe2672246610c88e91dd28afa6cfb.tar.gz
nixos-e58370464efbe2672246610c88e91dd28afa6cfb.tar.bz2
nixos-e58370464efbe2672246610c88e91dd28afa6cfb.tar.xz
nixos-e58370464efbe2672246610c88e91dd28afa6cfb.zip
Diffstat (limited to 'odin.nix')
-rw-r--r--odin.nix13
1 files changed, 13 insertions, 0 deletions
diff --git a/odin.nix b/odin.nix
index 59d8a8dd..7d183d87 100644
--- a/odin.nix
+++ b/odin.nix
@@ -214,6 +214,9 @@
214 browseable = true; 214 browseable = true;
215 writable = false; 215 writable = false;
216 path = "/srv/media"; 216 path = "/srv/media";
217 "guest ok" = true;
218 "guest account" = "nobody";
219 "guest only" = true;
217 }; 220 };
218 }; 221 };
219 extraConfig = '' 222 extraConfig = ''
@@ -334,6 +337,16 @@
334 agentTimeout = "1h"; 337 agentTimeout = "1h";
335 }; 338 };
336 339
340 nix = {
341 daemonIONiceLevel = 3;
342 daemonNiceLevel = 10;
343 gc = {
344 automatic = true;
345 options = "--delete-older-than 21d";
346 };
347 autoOptimiseStore = true;
348 };
349
337 systemd.status-mail = { 350 systemd.status-mail = {
338 recipient = "root@odin.asgard.yggdrasil"; 351 recipient = "root@odin.asgard.yggdrasil";
339 onFailure = [ "nixos-upgrade" 352 onFailure = [ "nixos-upgrade"