summaryrefslogtreecommitdiffstats
path: root/krebs/2configs
diff options
context:
space:
mode:
authorlassulus <lassulus@lassul.us>2021-11-28 00:12:00 +0100
committerlassulus <lassulus@lassul.us>2021-11-28 00:12:00 +0100
commit14c210d35853c914d5e9cf3488b32f2aaae1d246 (patch)
tree9efb7d6f20277a0e0878ec9bd3d6a34e4e3871ba /krebs/2configs
parent8a0685d85940eb1f2e2cf595730b02cc73b0219e (diff)
limit journald size
Diffstat (limited to 'krebs/2configs')
-rw-r--r--krebs/2configs/default.nix7
1 files changed, 7 insertions, 0 deletions
diff --git a/krebs/2configs/default.nix b/krebs/2configs/default.nix
index 4c25bc963..369b750b7 100644
--- a/krebs/2configs/default.nix
+++ b/krebs/2configs/default.nix
@@ -45,6 +45,13 @@ with import <stockholm/lib>;
services.cron.enable = false;
services.ntp.enable = false;
+ # limit journald size
+ services.journald.extraConfig = ''
+ SystemMaxUse=1G
+ RuntimeMaxUse=128M
+ Storage=persistent
+ '';
+
users.mutableUsers = false;
users.extraUsers.root.openssh.authorizedKeys.keys = [
config.krebs.users.jeschli-brauerei.pubkey