Allow dirty nixpkgs override
This commit is contained in:
parent
ed8b506695
commit
32a381a398
1 changed files with 2 additions and 1 deletions
|
@ -12,6 +12,7 @@
|
||||||
|
|
||||||
outputs = { self, nixpkgs, home-manager, flake-utils }:
|
outputs = { self, nixpkgs, home-manager, flake-utils }:
|
||||||
let
|
let
|
||||||
|
version-suffix = nixpkgs.rev or (builtins.toString nixpkgs.lastModified);
|
||||||
pkgsFor = system: import nixpkgs {
|
pkgsFor = system: import nixpkgs {
|
||||||
inherit system;
|
inherit system;
|
||||||
config = { allowUnfree = true; };
|
config = { allowUnfree = true; };
|
||||||
|
@ -25,7 +26,7 @@
|
||||||
environment.etc."nixpkgs".source = (pkgs.runCommandNoCC "nixpkgs" { } ''
|
environment.etc."nixpkgs".source = (pkgs.runCommandNoCC "nixpkgs" { } ''
|
||||||
cp -r ${nixpkgs} $out
|
cp -r ${nixpkgs} $out
|
||||||
chmod 700 $out
|
chmod 700 $out
|
||||||
echo "${nixpkgs.rev}" > $out/.version-suffix
|
echo "${version-suffix}" > $out/.version-suffix
|
||||||
'');
|
'');
|
||||||
nix.nixPath = [ "nixpkgs=/etc/nixpkgs" ];
|
nix.nixPath = [ "nixpkgs=/etc/nixpkgs" ];
|
||||||
})
|
})
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue