diff options
-rw-r--r-- | bragi.nix | 8 | ||||
-rw-r--r-- | odin.nix | 13 |
2 files changed, 14 insertions, 7 deletions
@@ -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 | }; |
@@ -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" |