flake: Better fix for registry changes
This commit is contained in:
parent
2188d0848b
commit
4faf1d7955
1 changed files with 7 additions and 4 deletions
11
flake.nix
11
flake.nix
|
@ -141,14 +141,17 @@
|
||||||
modules = commonModules ++ [
|
modules = commonModules ++ [
|
||||||
({ config, ... }:
|
({ config, ... }:
|
||||||
{
|
{
|
||||||
nixpkgs.pkgs = import nixpkgs {
|
nixpkgs = {
|
||||||
inherit overlays system;
|
pkgs = import nixpkgs {
|
||||||
config.allowUnfreePredicate = pkg: builtins.elem (lib.getName pkg) config.chvp.base.nix.unfreePackages;
|
inherit overlays system;
|
||||||
|
config.allowUnfreePredicate = pkg: builtins.elem (lib.getName pkg) config.chvp.base.nix.unfreePackages;
|
||||||
|
};
|
||||||
|
flake.source = lib.mkForce "${nixpkgs}";
|
||||||
};
|
};
|
||||||
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) // { nixpkgs = { flake = nixpkgs; to.path = lib.mkForce "${nixpkgs}"; }; };
|
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