mirror of
https://github.com/nix-community/disko.git
synced 2026-12-02 14: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 {
|
_config = lib.mkOption {
|
||||||
internal = true;
|
internal = true;
|
||||||
readOnly = true;
|
readOnly = true;
|
||||||
default = map
|
default = (map
|
||||||
(partition:
|
(partition:
|
||||||
lib.optional (partition.content != null) partition.content._config
|
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";
|
description = "NixOS configuration";
|
||||||
};
|
};
|
||||||
_pkgs = lib.mkOption {
|
_pkgs = lib.mkOption {
|
||||||
|
|||||||
Reference in new issue
Block a user