Add log-to-ram module

This commit is contained in:
Andreas Zweili 2022-08-17 20:26:46 +02:00
parent 8d87f25055
commit d1574001c1
2 changed files with 11 additions and 0 deletions

View File

@ -0,0 +1,10 @@
{ pkgs, ... }:
{
fileSystems."/tmp/log " = {
fsType = "tmpfs";
options = [ "size=512M" ];
};
services.journald.extraConfig = ''
SystemMaxUse=300M
'';
}

View File

@ -2,6 +2,7 @@
{
imports = [
inputs.nixos-hardware.nixosModules.raspberry-pi-4
"${inputs.self}/modules/log-to-ram"
"${inputs.self}/modules/ntp"
"${inputs.self}/modules/syslog"
];