mirror of
https://github.com/nix-community/disko.git
synced 2026-11-30 13:03:28 +01:00
types gpt: set grub.devices automatically
This commit is contained in:
1 parent
e388239311
commit
260c0023db
1 file changed
+5
-2
+5
-2
@@ -129,11 +129,14 @@ in
|
||||
_config = lib.mkOption {
|
||||
internal = true;
|
||||
readOnly = true;
|
||||
default = map
|
||||
default = (map
|
||||
(partition:
|
||||
lib.optional (partition.content != null) partition.content._config
|
||||
)
|
||||
(lib.attrValues config.partitions);
|
||||
(lib.attrValues config.partitions))
|
||||
++ (lib.optional (lib.any (part: part.type == "EF02") (lib.attrValues config.partitions)) {
|
||||
boot.loader.grub.devices = [ config.device ];
|
||||
});
|
||||
description = "NixOS configuration";
|
||||
};
|
||||
_pkgs = lib.mkOption {
|
||||
|
||||
Reference in new issue
Block a user