diff --git a/nix/nix.nix b/nix/nix.nix index 9386e1e..935b348 100644 --- a/nix/nix.nix +++ b/nix/nix.nix @@ -104,5 +104,10 @@ in nixpkgs-unstable.flake = nixpkgs-unstable; }; + nix.nixPath = mkBefore [ + "nixpkgs=${nixpkgs.outPath}" + "nixos-config=/etc/nixos/configuration.nix" + ]; + }; } diff --git a/overlays.nix b/overlays.nix index 200de5a..ae09d09 100644 --- a/overlays.nix +++ b/overlays.nix @@ -21,8 +21,6 @@ in }; config = mkIf cfg.enable { nix.nixPath = - # Prepend default nixPath values. - options.nix.nixPath.default ++ # Append our nixpkgs-overlays. [ "nixpkgs-overlays=/etc/nixos/overlays-compat/" ] ;