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 }:
|
||||
let
|
||||
version-suffix = nixpkgs.rev or (builtins.toString nixpkgs.lastModified);
|
||||
pkgsFor = system: import nixpkgs {
|
||||
inherit system;
|
||||
config = { allowUnfree = true; };
|
||||
|
@ -25,7 +26,7 @@
|
|||
environment.etc."nixpkgs".source = (pkgs.runCommandNoCC "nixpkgs" { } ''
|
||||
cp -r ${nixpkgs} $out
|
||||
chmod 700 $out
|
||||
echo "${nixpkgs.rev}" > $out/.version-suffix
|
||||
echo "${version-suffix}" > $out/.version-suffix
|
||||
'');
|
||||
nix.nixPath = [ "nixpkgs=/etc/nixpkgs" ];
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue