Upgrade to NixOS 23.05 and SSD boot

This commit is contained in:
2023-06-08 18:30:16 +02:00
parent 95a024a6e7
commit 110a98c3d4
14 changed files with 107 additions and 117 deletions

View File

@@ -12,24 +12,20 @@ with pkgs;
inputs.agenix.packages.aarch64-linux.default
];
# Add a swap file
swapDevices = [{
device = "/swapfile";
size = 4096;
}];
# Enable zswap
zramSwap.enable = true;
# Configure basic SSH access
services.openssh = {
enable = true;
permitRootLogin = "yes";
passwordAuthentication = false;
settings = {
PermitRootLogin = "yes";
PasswordAuthentication = false;
};
};
# Cleanup tmp on startup
boot.cleanTmpDir = true;
boot.tmp.cleanOnBoot = true;
# Create coolneng user
users.users.coolneng = {