From d415a8c0481c4d13371f343e1c802bf29135082f Mon Sep 17 00:00:00 2001 From: seth Date: Tue, 31 Oct 2023 23:00:00 -0400 Subject: modules: don't poullute nix path/registry & disable channels on nixos --- modules/shared/nix.nix | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (limited to 'modules/shared') 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; -- cgit v1.2.3