Send patched nixpkgs to nix registry
This commit is contained in:
parent
152b3a9f5e
commit
d1d9c0b47d
1 changed files with 1 additions and 2 deletions
|
@ -121,12 +121,11 @@
|
||||||
({ config, ... }:
|
({ config, ... }:
|
||||||
let nixpkgs = nixpkgsForSystem system; in
|
let nixpkgs = nixpkgsForSystem system; in
|
||||||
{
|
{
|
||||||
environment.etc.nixpkgs.source = nixpkgs;
|
|
||||||
nixpkgs.pkgs = import nixpkgs { inherit overlays system; config = config.nixpkgs.config; };
|
nixpkgs.pkgs = import nixpkgs { inherit overlays system; config = config.nixpkgs.config; };
|
||||||
networking.hostName = name;
|
networking.hostName = name;
|
||||||
nix = {
|
nix = {
|
||||||
extraOptions = "extra-experimental-features = nix-command flakes";
|
extraOptions = "extra-experimental-features = nix-command flakes";
|
||||||
registry = builtins.mapAttrs (name: v: { flake = v; }) inputs;
|
registry = (builtins.mapAttrs (name: v: { flake = v; }) inputs) // { nixpkgs.flake = nixpkgs; };
|
||||||
};
|
};
|
||||||
})
|
})
|
||||||
./machines/${name}
|
./machines/${name}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue