From e58370464efbe2672246610c88e91dd28afa6cfb Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Mon, 30 Apr 2018 11:56:59 +0200 Subject: =?UTF-8?q?=E2=80=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bragi.nix | 8 +------- odin.nix | 13 +++++++++++++ 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 { enable = true; }; - services.fcron = { - enable = true; - systab = '' - %weekly * * nix-collect-garbage --delete-older-than '7d' - ''; - }; - services.journald = { rateLimitBurst = 0; }; @@ -440,6 +433,7 @@ in rec { daemonNiceLevel = 10; gc = { automatic = true; + options = "--delete-older-than 21d"; }; autoOptimiseStore = true; }; diff --git a/odin.nix b/odin.nix index 59d8a8dd..7d183d87 100644 --- a/odin.nix +++ b/odin.nix @@ -214,6 +214,9 @@ browseable = true; writable = false; path = "/srv/media"; + "guest ok" = true; + "guest account" = "nobody"; + "guest only" = true; }; }; extraConfig = '' @@ -334,6 +337,16 @@ agentTimeout = "1h"; }; + nix = { + daemonIONiceLevel = 3; + daemonNiceLevel = 10; + gc = { + automatic = true; + options = "--delete-older-than 21d"; + }; + autoOptimiseStore = true; + }; + systemd.status-mail = { recipient = "root@odin.asgard.yggdrasil"; onFailure = [ "nixos-upgrade" -- cgit v1.2.3