Setup files for zippy.

This commit is contained in:
2024-07-25 11:36:17 +01:00
parent 473e93b4bb
commit 79b53ebba0
3 changed files with 61 additions and 5 deletions

View File

@@ -10,7 +10,7 @@ in
./hardware-configuration.nix
];
networking.hostName = "c1";
networking.hostName = "zippy";
nix.settings.experimental-features = [ "nix-command" "flakes" ];
nix.settings.trusted-users = [ "root" "@wheel" ];
@@ -20,11 +20,11 @@ in
allowDiscards = true;
bypassWorkqueues = true;
keyFileSize = 4096;
keyFile = "/dev/sda";
keyFile = "/dev/sdb";
};
swapDevices = pkgs.lib.mkForce [ {
device = "/dev/disk/by-id/nvme-eui.002538b981b03d98-part2";
device = "/dev/disk/by-id/ata-KINGSTON_SKC600MS1024G_50026B7785AE0A92-part2";
randomEncryption.enable = true;
}];
@@ -134,7 +134,7 @@ in
};
networking.firewall = {
enable = true;
enable = false;
allowedTCPPorts = [ 22 ];
allowedUDPPorts = [ ];
};
@@ -150,6 +150,6 @@ in
# this value at the release version of the first install of this system.
# Before changing this value read the documentation for this option
# (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
system.stateVersion = "23.05"; # Did you read the comment?
system.stateVersion = "24.05"; # Did you read the comment?
}