Compare commits
2 Commits
249aa0a4bf
...
5095560f1c
Author | SHA1 | Date |
---|---|---|
Nathan McCarty | 5095560f1c | |
Nathan McCarty | ef29560c7c |
|
@ -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
|
||||
];
|
||||
|
|
|
@ -28,7 +28,6 @@
|
|||
device = "/dev/sda";
|
||||
useOSProber = true;
|
||||
};
|
||||
virtualisation.vmware.guest.enable = true;
|
||||
# Setup system configuration
|
||||
nathan = {
|
||||
programs = { games = false; };
|
||||
|
|
|
@ -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
|
||||
'';
|
||||
}
|
||||
];
|
||||
}
|
||||
|
|
|
@ -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 = {
|
||||
|
|
Loading…
Reference in New Issue