mirror of
https://github.com/nix-community/disko.git
synced 2026-11-30 21:13:28 +01:00
lib: Evaluate partition's _index parameter
This is required to be able to generate sgdisk invocations that are equivalent to what's currently generated in nix.
This commit is contained in:
1 parent
4f16850ca4
commit
70efb0a658
3 files changed
+7
-1
No files matched your search
@@ -44,6 +44,7 @@ let
|
||||
|
||||
diskoConfig = evaluatedConfig.config.disko.devices;
|
||||
|
||||
finalConfig = lib.filterAttrsRecursive (name: value: !lib.hasPrefix "_" name) diskoConfig;
|
||||
shouldBeEvaluated = name: (!lib.hasPrefix "_" name) || (name == "_index");
|
||||
finalConfig = lib.filterAttrsRecursive (name: value: shouldBeEvaluated name) diskoConfig;
|
||||
in
|
||||
finalConfig
|
||||
Reference in new issue
Block a user