Summary Files Commits Branches @commit @diff @stats
diff options
context:
space:
mode:
Commit88a10699885b9a69222bbddffc8a9f73d966038c (patch)
Author
 Syndamia <kamen@syndamia.com>
2024-09-08 10:48:02 +0300
Committer
 Syndamia <kamen@syndamia.com>
2024-09-08 10:48:02 +0300
Filesbeabb9314c07b56c0824e2887f3cf534370d4199
nix-88a10699885b9a69222bbddffc8a9f73d966038c.tar
nix-88a10699885b9a69222bbddffc8a9f73d966038c.tar.gz
nix-88a10699885b9a69222bbddffc8a9f73d966038c.zip
Parente69d90192823929a437e035605d1fd64b54c5877 (diff)
fix(autoconfig): Use lib.path.append instead of manual +
1 files changed, 2 insertions, 2 deletions
-rw-r--r--autoconfig.nix4
diff --git a/autoconfig.nix b/autoconfig.nix
index aae1315..5432b1b 100644
--- a/autoconfig.nix
+++ b/autoconfig.nix
@@ -18,14 +18,14 @@ in {
# }
sysidentity = (import ./machines/${dir}/sysidentity.nix) (import ./module-groups.nix);
- modules-dir = ./modules + ("/" + sysidentity."kind");
+ modules-dir = lib.path.append ./modules sysidentity."kind";
package-modules =
let
getmodules = attrname:
if sysidentity ? ${attrname}
then map
- (v: modules-dir + ("/" + v + (if lib.hasSuffix ".nix" v then "" else ".nix")))
+ (v: lib.path.append modules-dir (v + (if lib.hasSuffix ".nix" v then "" else ".nix")))
sysidentity.${attrname}
else [];