mirror of
https://github.com/nix-community/disko.git
synced 2026-11-30 21:13:28 +01:00
fix: restore nix 2.3 compatibility
Apparently nix 2.3 didn't support path interpolations.
This commit is contained in:
1 parent
97c0c4d707
commit
3a8a8713bf
1 file changed
+2
-2
+2
-2
@@ -678,7 +678,7 @@ let
|
||||
map
|
||||
(file: lib.nameValuePair
|
||||
(lib.removeSuffix ".nix" file)
|
||||
(diskoLib.mkSubType ./types/${file})
|
||||
(diskoLib.mkSubType (./types + "/${file}"))
|
||||
)
|
||||
(lib.attrNames (builtins.readDir ./types))
|
||||
);
|
||||
@@ -773,7 +773,7 @@ let
|
||||
map
|
||||
(file: lib.nameValuePair
|
||||
(lib.removeSuffix ".nix" file)
|
||||
(diskoLib.serializeType (import ./types/${file} diskoLib.typesSerializerLib))
|
||||
(diskoLib.serializeType (import (./types + "/${file}") diskoLib.typesSerializerLib))
|
||||
)
|
||||
(lib.filter (name: lib.hasSuffix ".nix" name) (lib.attrNames (builtins.readDir ./types)))
|
||||
) // {
|
||||
|
||||
Reference in new issue
Block a user