Split off disk encryption.
This commit is contained in:
@@ -4,16 +4,9 @@
|
|||||||
./impermanence.nix
|
./impermanence.nix
|
||||||
./sshd.nix
|
./sshd.nix
|
||||||
./user-ppetru.nix
|
./user-ppetru.nix
|
||||||
|
./unattended-encryption.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
boot.initrd.kernelModules = [ "usb_storage" ];
|
|
||||||
boot.initrd.luks.devices."luksroot" = {
|
|
||||||
allowDiscards = true;
|
|
||||||
bypassWorkqueues = true;
|
|
||||||
keyFileSize = 4096;
|
|
||||||
keyFile = "/dev/sda";
|
|
||||||
};
|
|
||||||
|
|
||||||
# Use the systemd-boot EFI boot loader.
|
# Use the systemd-boot EFI boot loader.
|
||||||
boot.loader.systemd-boot.enable = true;
|
boot.loader.systemd-boot.enable = true;
|
||||||
boot.loader.efi.canTouchEfiVariables = true;
|
boot.loader.efi.canTouchEfiVariables = true;
|
||||||
|
|||||||
9
hosts/common/unattended-encryption.nix
Normal file
9
hosts/common/unattended-encryption.nix
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
{
|
||||||
|
boot.initrd.kernelModules = [ "usb_storage" ];
|
||||||
|
boot.initrd.luks.devices."luksroot" = {
|
||||||
|
allowDiscards = true;
|
||||||
|
bypassWorkqueues = true;
|
||||||
|
keyFileSize = 4096;
|
||||||
|
keyFile = "/dev/sda";
|
||||||
|
};
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user