diff options
| author | seth <[email protected]> | 2023-10-31 23:00:00 -0400 |
|---|---|---|
| committer | seth <[email protected]> | 2023-10-31 23:00:00 -0400 |
| commit | d415a8c0481c4d13371f343e1c802bf29135082f (patch) | |
| tree | 7ca07ca91827ffc50ea9694b0b296cc6392d05f0 /modules/shared/nix.nix | |
| parent | fb6e952c39962456160f6ea1e94a5242457703b1 (diff) | |
modules: don't poullute nix path/registry & disable channels on nixos
Diffstat (limited to 'modules/shared/nix.nix')
| -rw-r--r-- | modules/shared/nix.nix | 14 |
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; |
