diff --git a/disko/EDI/configuration.nix b/disko/EDI/configuration.nix index 610edd9..e240d0d 100644 --- a/disko/EDI/configuration.nix +++ b/disko/EDI/configuration.nix @@ -19,6 +19,20 @@ ]; }; }; + encryptedSwap = { + size = "20M"; + content = { + type = "swap"; + randomEncryption = true; + }; + }; + plainSwap = { + size = "4G"; + content = { + type = "swap"; + resumeDevice = true; # resume from hiberation from this device + }; + }; luks = { size = "100%"; content = { @@ -28,33 +42,14 @@ #passwordFile = "/tmp/secret.key"; # Interactive settings = { allowDiscards = true; - keyFile = "/tmp/secret.key"; + #keyFile = "/tmp/secret.key"; }; #additionalKeyFiles = ["/tmp/additionalSecret.key"]; - content = { - root = { - name = "root"; - end = "-2G"; content = { type = "filesystem"; format = "bcachefs"; mountpoint = "/"; }; - }; - encryptedSwap = { - size = "20M"; - content = { - type = "swap"; - randomEncryption = true; - }; - }; - plainSwap = { - size = "100%"; - content = { - type = "swap"; - resumeDevice = true; # resume from hiberation from this device - }; - }; }; }; }; @@ -62,5 +57,4 @@ }; }; }; - }; } diff --git a/nixos/desktop/configuration.nix b/nixos/desktop/configuration.nix index ac78897..aeb858b 100644 --- a/nixos/desktop/configuration.nix +++ b/nixos/desktop/configuration.nix @@ -165,7 +165,6 @@ boot.loader.systemd-boot.enable = true; boot.loader.systemd-boot.configurationLimit = 3; boot.loader.efi.canTouchEfiVariables = true; - boot.bootspec.enable = true; boot.supportedFilesystems = ["bcachefs"]; boot.kernelPackages = pkgs.linuxPackages_latest; diff --git a/nixos/hosts/EDI/configuration.nix b/nixos/hosts/EDI/configuration.nix index 8f8eea4..8bc0b8a 100644 --- a/nixos/hosts/EDI/configuration.nix +++ b/nixos/hosts/EDI/configuration.nix @@ -38,6 +38,8 @@ networking.hostName = "EDI"; + boot.bootspec.enable = true; + # Enable bluetooth hardware hardware.bluetooth.enable = true;