Skip to content

Commit

Permalink
add hosts specialArg to allow for modules to reference other host's c…
Browse files Browse the repository at this point in the history
…onfiguration
  • Loading branch information
Pacman99 committed Mar 15, 2021
1 parent d7f15a6 commit 24505ab
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions hosts/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,11 @@ let

nixpkgs = { inherit pkgs; };

_module.args = {
hosts = builtins.mapAttrs (_: host: host.config)
(removeAttrs hosts [ config.networking.hostName ]);
};

nix.registry = {
devos.flake = self;
nixos.flake = nixos;
Expand Down

0 comments on commit 24505ab

Please sign in to comment.