refactor: switch to new luks config setup
This commit is contained in:
parent
2dde331bbb
commit
f779d246bc
2 changed files with 32 additions and 6 deletions
common
|
@ -1,14 +1,12 @@
|
|||
{ config, pkgs, ... }:
|
||||
|
||||
{
|
||||
boot.initrd.luks.devices = [
|
||||
{
|
||||
name = "root";
|
||||
boot.initrd.luks.devices = {
|
||||
root = {
|
||||
device = "/dev/disk/by-partlabel/nixos";
|
||||
preLVM = true;
|
||||
allowDiscards = true;
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
boot.kernelPackages = pkgs.linuxPackages_latest;
|
||||
boot.loader.systemd-boot.enable = true;
|
||||
boot.loader.efi.canTouchEfiVariables = true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue