Compare commits
2 Commits
249aa0a4bf
...
5095560f1c
Author | SHA1 | Date |
---|---|---|
Nathan McCarty | 5095560f1c | |
Nathan McCarty | ef29560c7c |
|
@ -208,6 +208,7 @@
|
||||||
system = "x86_64-linux";
|
system = "x86_64-linux";
|
||||||
hostName = "productivity-vm";
|
hostName = "productivity-vm";
|
||||||
extraModules = [
|
extraModules = [
|
||||||
|
"${nixpkgs}/nixos/modules/profiles/qemu-guest.nix"
|
||||||
./machines/productivity-vm/configuration.nix
|
./machines/productivity-vm/configuration.nix
|
||||||
./machines/productivity-vm/hardware.nix
|
./machines/productivity-vm/hardware.nix
|
||||||
];
|
];
|
||||||
|
|
|
@ -28,7 +28,6 @@
|
||||||
device = "/dev/sda";
|
device = "/dev/sda";
|
||||||
useOSProber = true;
|
useOSProber = true;
|
||||||
};
|
};
|
||||||
virtualisation.vmware.guest.enable = true;
|
|
||||||
# Setup system configuration
|
# Setup system configuration
|
||||||
nathan = {
|
nathan = {
|
||||||
programs = { games = false; };
|
programs = { games = false; };
|
||||||
|
|
|
@ -72,5 +72,11 @@ with lib; {
|
||||||
services.iperf3.enable = true;
|
services.iperf3.enable = true;
|
||||||
environment.systemPackages = with pkgs; [ iperf ];
|
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;
|
recommendedGzipSettings = true;
|
||||||
recommendedProxySettings = true;
|
recommendedProxySettings = true;
|
||||||
};
|
};
|
||||||
|
# Only keep 7 days of logs
|
||||||
|
services.logrotate.settings.nginx = {
|
||||||
|
rotate = 7;
|
||||||
|
frequency = "daily";
|
||||||
|
};
|
||||||
})
|
})
|
||||||
(mkIf nathan.services.nginx.acme {
|
(mkIf nathan.services.nginx.acme {
|
||||||
security.acme = {
|
security.acme = {
|
||||||
|
|
Loading…
Reference in New Issue