mirror of
https://github.com/buckley310/nixos-config.git
synced 2024-11-09 18:47:02 +00:00
fix store path duplication issue
This commit is contained in:
parent
95f13eadfa
commit
21a9bf2d0c
2 changed files with 6 additions and 3 deletions
|
@ -45,7 +45,10 @@
|
||||||
|
|
||||||
nixosModule = {
|
nixosModule = {
|
||||||
imports = builtins.attrValues self.nixosModules;
|
imports = builtins.attrValues self.nixosModules;
|
||||||
nixpkgs.overlays = [ (_: mypkgs) ];
|
nixpkgs.overlays = [
|
||||||
|
(_: _: { nixpkgs_src = toString nixpkgs; })
|
||||||
|
(_: mypkgs)
|
||||||
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
nixosConfigurations = import ./hosts nixpkgs hardware self.nixosModule;
|
nixosConfigurations = import ./hosts nixpkgs hardware self.nixosModule;
|
||||||
|
|
|
@ -10,7 +10,7 @@ with lib;
|
||||||
|
|
||||||
fonts.fonts = [ pkgs.bck-nerdfont ];
|
fonts.fonts = [ pkgs.bck-nerdfont ];
|
||||||
|
|
||||||
environment.etc.nixpkgs.source = pkgs.path;
|
environment.etc.nixpkgs.source = pkgs.nixpkgs_src;
|
||||||
nix.nixPath = [ "nixpkgs=/etc/nixpkgs" ];
|
nix.nixPath = [ "nixpkgs=/etc/nixpkgs" ];
|
||||||
|
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
|
@ -30,7 +30,7 @@ with lib;
|
||||||
tdesktop
|
tdesktop
|
||||||
youtube-dl
|
youtube-dl
|
||||||
|
|
||||||
(writeShellScriptBin "nr" "nix repl ${pkgs.path}")
|
(writeShellScriptBin "nr" "exec nix repl ${pkgs.nixpkgs_src}")
|
||||||
|
|
||||||
(mpv-with-scripts.override { scripts = [ mpvScripts.mpris ]; })
|
(mpv-with-scripts.override { scripts = [ mpvScripts.mpris ]; })
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue