Send patched nixpkgs to nix registry

This commit is contained in:
Charlotte Van Petegem 2023-05-12 16:18:26 +02:00
parent 152b3a9f5e
commit d1d9c0b47d
No known key found for this signature in database
GPG key ID: 019E764B7184435A

View file

@ -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}