diff --git a/config/default.nix b/config/default.nix index 26260482..c32c9b4f 100644 --- a/config/default.nix +++ b/config/default.nix @@ -221,15 +221,7 @@ # Do not break the boot enableEmergencyMode = false; - services = { - nix-daemon.serviceConfig.KillMode = "control-group"; - - postgresql = lib.mkIf config.services.postgresql.enable { - # default is 1024 which was not enough for mastodon and leading to errors like the following which crash postgresql: - # could not close file "./global/176529": Too many open files - serviceConfig.LimitNOFile = 1024*32; - }; - }; + services.nix-daemon.serviceConfig.KillMode = "control-group"; # Reboot on hang watchdog = lib.mkIf (!config.boot.isContainer) { diff --git a/modules/backup.nix b/modules/backup.nix index d3239551..a47c65d0 100644 --- a/modules/backup.nix +++ b/modules/backup.nix @@ -110,14 +110,8 @@ in systemd = { services = { - restic-backups-server8.serviceConfig = { - Environment = "RESTIC_PROGRESS_FPS=0.016666"; - LimitNOFile = 1024*32; - }; - restic-backups-offsite.serviceConfig = { - Environment = "RESTIC_PROGRESS_FPS=0.016666"; - LimitNOFile = 1024*32; - }; + restic-backups-server8.serviceConfig.Environment = "RESTIC_PROGRESS_FPS=0.016666"; + restic-backups-offsite.serviceConfig.Environment = "RESTIC_PROGRESS_FPS=0.016666"; }; timers = lib.mkIf config.services.postgresqlBackup.enable { postgresqlBackup.timerConfig.RandomizedDelaySec = "5m";