diff options
author | Profpatsch <mail@profpatsch.de> | 2021-02-13 00:15:31 +0100 |
---|---|---|
committer | Profpatsch <mail@profpatsch.de> | 2021-02-13 12:19:51 +0100 |
commit | cfc5b3fe97cf1fa86d2992ca570addc8195c5179 (patch) | |
tree | 3e317694c1b4c44f7d05cd11ef90a1e1cb1e186d /machines/profpatsch/base.nix | |
parent | 6ee8541db0196536c935cd8c82dca1991240d38e (diff) |
feat(profpatsch/machines): set journal size limit on every machine
Before we just set 50M on workstations, but let’s increase to 500M and set it as default on every machine, so we don’t run out of space because somebody DDoSes our server logs.
Diffstat (limited to 'machines/profpatsch/base.nix')
-rw-r--r-- | machines/profpatsch/base.nix | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/machines/profpatsch/base.nix b/machines/profpatsch/base.nix index a5147706..2b3eb419 100644 --- a/machines/profpatsch/base.nix +++ b/machines/profpatsch/base.nix @@ -15,6 +15,9 @@ in # /tmp should never be depended on boot.cleanTmpDir = true; + # bounded journal size + services.journald.extraConfig = "SystemMaxUse=500M"; + programs.bash = { interactiveShellInit = '' alias c='vim /root/vuizvui/machines/profpatsch' |