From 88a10699885b9a69222bbddffc8a9f73d966038c Mon Sep 17 00:00:00 2001 From: Syndamia Date: Sun, 8 Sep 2024 10:48:02 +0300 Subject: fix(autoconfig): Use lib.path.append instead of manual + --- autoconfig.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 []; -- cgit v1.3.1-23-gd82d