summaryrefslogtreecommitdiff
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
parent6859463daaf422d253b55e480a0861fe066090ab (diff)
downloadnixos-e58370464efbe2672246610c88e91dd28afa6cfb.tar
nixos-e58370464efbe2672246610c88e91dd28afa6cfb.tar.gz
nixos-e58370464efbe2672246610c88e91dd28afa6cfb.tar.bz2
nixos-e58370464efbe2672246610c88e91dd28afa6cfb.tar.xz
nixos-e58370464efbe2672246610c88e91dd28afa6cfb.zip
-rw-r--r--bragi.nix8
-rw-r--r--odin.nix13
2 files changed, 14 insertions, 7 deletions
diff --git a/bragi.nix b/bragi.nix
index 8c76f211..590aba02 100644
--- a/bragi.nix
+++ b/bragi.nix
@@ -129,13 +129,6 @@ in rec {
129 enable = true; 129 enable = true;
130 }; 130 };
131 131
132 services.fcron = {
133 enable = true;
134 systab = ''
135 %weekly * * nix-collect-garbage --delete-older-than '7d'
136 '';
137 };
138
139 services.journald = { 132 services.journald = {
140 rateLimitBurst = 0; 133 rateLimitBurst = 0;
141 }; 134 };
@@ -440,6 +433,7 @@ in rec {
440 daemonNiceLevel = 10; 433 daemonNiceLevel = 10;
441 gc = { 434 gc = {
442 automatic = true; 435 automatic = true;
436 options = "--delete-older-than 21d";
443 }; 437 };
444 autoOptimiseStore = true; 438 autoOptimiseStore = true;
445 }; 439 };
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"