refactor: switch to new luks config setup

This commit is contained in:
Felix Schröter 2020-01-19 10:45:38 +01:00
parent 2dde331bbb
commit f779d246bc
No known key found for this signature in database
GPG key ID: A12D7C9D2FD34458
2 changed files with 32 additions and 6 deletions

View file

@ -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;