Compare commits

...

2 Commits

Author SHA1 Message Date
Nathan McCarty 5095560f1c
Switch productivity vm to qemu 2023-06-19 03:21:08 -04:00
Nathan McCarty ef29560c7c
Only keep 7 days of logs 2023-06-19 02:43:14 -04:00
4 changed files with 12 additions and 1 deletions

View File

@ -208,6 +208,7 @@
system = "x86_64-linux";
hostName = "productivity-vm";
extraModules = [
"${nixpkgs}/nixos/modules/profiles/qemu-guest.nix"
./machines/productivity-vm/configuration.nix
./machines/productivity-vm/hardware.nix
];

View File

@ -28,7 +28,6 @@
device = "/dev/sda";
useOSProber = true;
};
virtualisation.vmware.guest.enable = true;
# Setup system configuration
nathan = {
programs = { games = false; };

View File

@ -72,5 +72,11 @@ with lib; {
services.iperf3.enable = true;
environment.systemPackages = with pkgs; [ iperf ];
}
# Don't store logs longer than 7 days
{
services.journald.extraConfig = ''
MaxRetentionSec=7day
'';
}
];
}

View File

@ -14,6 +14,11 @@ in with lib; {
recommendedGzipSettings = true;
recommendedProxySettings = true;
};
# Only keep 7 days of logs
services.logrotate.settings.nginx = {
rotate = 7;
frequency = "daily";
};
})
(mkIf nathan.services.nginx.acme {
security.acme = {