summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFuwn <[email protected]>2024-09-30 18:46:51 -0700
committerFuwn <[email protected]>2024-09-30 18:46:51 -0700
commitba8fd8ca0a8758282321221562f52c7b6f85a071 (patch)
tree4275acd65eef49b8f407ceae098f99bdf5e98b98
parentflake: use self instead of relative path (diff)
downloadnixos-config-ba8fd8ca0a8758282321221562f52c7b6f85a071.tar.xz
nixos-config-ba8fd8ca0a8758282321221562f52c7b6f85a071.zip
overlays: use self instead of relative path
-rw-r--r--flake.nix2
-rw-r--r--lib/overlays.nix3
2 files changed, 3 insertions, 2 deletions
diff --git a/flake.nix b/flake.nix
index f63efda..a11b18d 100644
--- a/flake.nix
+++ b/flake.nix
@@ -33,7 +33,7 @@
cudaSupport = nixpkgsCudaSupport;
};
- overlays = import "${self}/lib/overlays.nix";
+ overlays = import "${self}/lib/overlays.nix" { inherit self; };
}
));
in
diff --git a/lib/overlays.nix b/lib/overlays.nix
index 21ba247..de40750 100644
--- a/lib/overlays.nix
+++ b/lib/overlays.nix
@@ -1,5 +1,6 @@
+{ self, ... }:
let
- path = ../overlays;
+ path = "${self}/overlays";
in
with builtins;
map (n: import (path + ("/" + n))) (