slab: enable lanzaboote with workaround
This commit is contained in:
parent
bbec705d40
commit
2edf8ff101
@ -19,6 +19,12 @@
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# Lanzaboote workaround (nix-community/lanzaboote#173)
|
||||||
|
(lib.mkIf config.boot.lanzaboote.enable {
|
||||||
|
"/efi/EFI/Linux" = { device = "/boot/EFI/Linux"; options = [ "bind" ]; };
|
||||||
|
"/efi/EFI/nixos" = { device = "/boot/EFI/nixos"; options = [ "bind" ]; };
|
||||||
|
})
|
||||||
|
|
||||||
(lib.genAttrs [ "/.btrfsroot" "/" "/home" "/nix" ] ( fs: {
|
(lib.genAttrs [ "/.btrfsroot" "/" "/home" "/nix" ] ( fs: {
|
||||||
options = [ "compress=zstd" ];
|
options = [ "compress=zstd" ];
|
||||||
}))
|
}))
|
||||||
@ -102,13 +108,18 @@
|
|||||||
# device = "nodev";
|
# device = "nodev";
|
||||||
# };
|
# };
|
||||||
systemd-boot = {
|
systemd-boot = {
|
||||||
enable = true;
|
enable = lib.mkForce (!config.boot.lanzaboote.enable);
|
||||||
xbootldrMountPoint = "/boot";
|
xbootldrMountPoint = "/boot";
|
||||||
netbootxyz.enable = true;
|
netbootxyz.enable = true;
|
||||||
memtest86.enable = true;
|
memtest86.enable = true;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
boot.lanzaboote = {
|
||||||
|
enable = true;
|
||||||
|
pkiBundle = "/etc/secureboot";
|
||||||
|
};
|
||||||
|
|
||||||
# systemd power/suspend configuration
|
# systemd power/suspend configuration
|
||||||
systemd.targets = lib.genAttrs ["suspend" "hybrid-sleep" "suspend-then-hibernate"] (_: {
|
systemd.targets = lib.genAttrs ["suspend" "hybrid-sleep" "suspend-then-hibernate"] (_: {
|
||||||
enable = false;
|
enable = false;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user