fix: grub.devices now forced to have exclusively nodev device
This commit is contained in:
parent
6461908e14
commit
e1d6c7048f
2 changed files with 3 additions and 3 deletions
|
|
@ -4,7 +4,7 @@
|
|||
namespace,
|
||||
...
|
||||
}: let
|
||||
inherit (lib) mkIf mkEnableOption;
|
||||
inherit (lib) mkIf mkEnableOption mkForce;
|
||||
inherit (lib.${namespace}) getAttrByNamespace mkOptionsWithNamespace;
|
||||
base = "${namespace}.hardware.bootloader";
|
||||
cfg = getAttrByNamespace config base;
|
||||
|
|
@ -18,7 +18,7 @@ in {
|
|||
grub = {
|
||||
enable = true;
|
||||
efiSupport = true;
|
||||
device = "nodev";
|
||||
devices = mkForce ["nodev"];
|
||||
};
|
||||
|
||||
efi.canTouchEfiVariables = true;
|
||||
|
|
|
|||
|
|
@ -45,7 +45,7 @@
|
|||
};
|
||||
};
|
||||
};
|
||||
extraDisks = builtins.listToAttrs (builtins.map (d: {
|
||||
extraDisks = builtins.listToAttrs (map (d: {
|
||||
name = d;
|
||||
value = {
|
||||
device = d;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue