fix store path duplication issue

This commit is contained in:
Sean Buckley 2022-01-05 22:31:42 -05:00
parent 95f13eadfa
commit 21a9bf2d0c
2 changed files with 6 additions and 3 deletions

View file

@ -45,7 +45,10 @@
nixosModule = {
imports = builtins.attrValues self.nixosModules;
nixpkgs.overlays = [ (_: mypkgs) ];
nixpkgs.overlays = [
(_: _: { nixpkgs_src = toString nixpkgs; })
(_: mypkgs)
];
};
nixosConfigurations = import ./hosts nixpkgs hardware self.nixosModule;

View file

@ -10,7 +10,7 @@ with lib;
fonts.fonts = [ pkgs.bck-nerdfont ];
environment.etc.nixpkgs.source = pkgs.path;
environment.etc.nixpkgs.source = pkgs.nixpkgs_src;
nix.nixPath = [ "nixpkgs=/etc/nixpkgs" ];
environment.systemPackages = with pkgs; [
@ -30,7 +30,7 @@ with lib;
tdesktop
youtube-dl
(writeShellScriptBin "nr" "nix repl ${pkgs.path}")
(writeShellScriptBin "nr" "exec nix repl ${pkgs.nixpkgs_src}")
(mpv-with-scripts.override { scripts = [ mpvScripts.mpris ]; })