diff options
| author | Fuwn <[email protected]> | 2024-09-30 18:46:51 -0700 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2024-09-30 18:46:51 -0700 |
| commit | ba8fd8ca0a8758282321221562f52c7b6f85a071 (patch) | |
| tree | 4275acd65eef49b8f407ceae098f99bdf5e98b98 | |
| parent | flake: use self instead of relative path (diff) | |
| download | nixos-config-ba8fd8ca0a8758282321221562f52c7b6f85a071.tar.xz nixos-config-ba8fd8ca0a8758282321221562f52c7b6f85a071.zip | |
overlays: use self instead of relative path
| -rw-r--r-- | flake.nix | 2 | ||||
| -rw-r--r-- | lib/overlays.nix | 3 |
2 files changed, 3 insertions, 2 deletions
@@ -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))) ( |