feat: enable flakes and use swap

This commit is contained in:
s-prechtl 2025-03-31 14:22:24 +02:00
parent 168b38b49d
commit f997551e81
3 changed files with 9 additions and 28 deletions

View file

@ -37,6 +37,8 @@ in {
};
};
nix.settings.experimental-features = ["nix-command" "flakes"];
virtualisation.docker.enable = true;
virtualisation.oci-containers = {
backend = "docker";

View file

@ -28,7 +28,12 @@
options = ["fmask=0022" "dmask=0022"];
};
swapDevices = [];
swapDevices = [
{
device = "/var/lib/swapfile";
size = 2 * 1024; # swap size is in mb
}
];
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking
# (the default) this is the recommended approach. When using systemd-networkd it's