diff --git a/modules/nix.nix b/modules/nix.nix index fb1fa4a..d615aaf 100644 --- a/modules/nix.nix +++ b/modules/nix.nix @@ -31,11 +31,6 @@ in nixpkgs-unstable.flake = nixpkgs-unstable; }; - nixPath = [ - "nixpkgs-overlays=${overlaysCompat}" - "nixpkgs-unstable=flake:nixpkgs-unstable" - ]; - settings = { # Make sudoers trusted nix users trusted-users = [ "@wheel" ]; @@ -44,6 +39,13 @@ in auto-optimise-store = true; experimental-features = "nix-command flakes"; + + # nix.nixPath does not work when nix.channel.enable == false (for some reason) + nix-path = [ + "nixpkgs-overlays=${overlaysCompat}" + "nixpkgs=flake:nixpkgs" + "nixpkgs-unstable=flake:nixpkgs-unstable" + ]; } // (lib.optionalAttrs config.sbruder.full { # Keep output of derivations with gc root keep-outputs = true;