summaryrefslogtreecommitdiff
path: root/modules/shared/nix.nix
diff options
context:
space:
mode:
Diffstat (limited to 'modules/shared/nix.nix')
-rw-r--r--modules/shared/nix.nix14
1 files changed, 8 insertions, 6 deletions
diff --git a/modules/shared/nix.nix b/modules/shared/nix.nix
index 2c0aedd..ba95a71 100644
--- a/modules/shared/nix.nix
+++ b/modules/shared/nix.nix
@@ -5,12 +5,14 @@
...
}: {
nix = {
- registry =
- {
- n.flake = lib.mkDefault inputs.nixpkgs;
- }
- // (builtins.mapAttrs (_: flake: {inherit flake;})
- (lib.filterAttrs (n: _: n != "nixpkgs") inputs));
+ registry = {
+ n.flake = lib.mkDefault inputs.nixpkgs;
+ self.flake = inputs.self;
+ };
+
+ nixPath = [
+ "nixpkgs=${inputs.nixpkgs.outPath}"
+ ];
settings = {
auto-optimise-store = pkgs.stdenv.isLinux;