diff options
Diffstat (limited to 'machines/khad/configuration.nix')
| -rw-r--r-- | machines/khad/configuration.nix | 21 |
1 files changed, 7 insertions, 14 deletions
diff --git a/machines/khad/configuration.nix b/machines/khad/configuration.nix index b0f8490..1f9c187 100644 --- a/machines/khad/configuration.nix +++ b/machines/khad/configuration.nix @@ -10,22 +10,15 @@ ./hardware-configuration.nix ]; - # Bootloader. - boot.loader.systemd-boot.enable = true; - boot.loader.efi.canTouchEfiVariables = true; - - # Setup keyfile - boot.initrd.secrets = { - "/crypto_keyfile.bin" = null; + # Use the systemd-boot EFI boot loader. + boot = { + loader = { + systemd-boot.enable = true; + efi.canTouchEfiVariables = true; + }; + kernelPackages = pkgs.linuxPackages_latest; # use latest kernel }; - # Enable swap on luks - boot.initrd.luks.devices."luks-12daadca-e9a9-413b-9286-017b3038e5ba".device = "/dev/disk/by-uuid/12daadca-e9a9-413b-9286-017b3038e5ba"; - boot.initrd.luks.devices."luks-12daadca-e9a9-413b-9286-017b3038e5ba".keyFile = "/crypto_keyfile.bin"; - - boot.initrd.luks.devices."luks-02516df1-d33b-4c83-90f8-4be7b918132e".keyFile = "/crypto_keyfile.bin"; - - networking.hostName = "khad"; # Define your hostname. # Pick only one of the below networking options. # networking.wireless.enable = true; # Enables wireless support via wpa_supplicant. |
