config: add home-manager configurations deploy nodes

This commit is contained in:
Gabriel Arazas 2022-11-30 08:35:30 +08:00
parent fa2509b578
commit d8b28ce617

View File

@ -439,17 +439,21 @@
# Take note for automatically imported nodes, various options should be # Take note for automatically imported nodes, various options should be
# overridden in the deploy utility considering that most have only # overridden in the deploy utility considering that most have only
# certain values and likely not work if run with the intended value. # certain values and likely not work if run with the intended value.
deploy.nodes = (lib'.mapAttrs' deploy.nodes = let
(name: value: importNodes = prefix: systems:
lib'.nameValuePair name { lib'.mapAttrs'
hostname = name; (name: value:
profiles.system = { lib'.nameValuePair "${prefix}-name" {
sshUser = "admin"; hostname = name;
user = "root"; profiles.system = {
path = inputs.deploy.lib.${defaultSystem}.activate.nixos value; sshUser = "admin";
}; user = "root";
}) path = inputs.deploy.lib.${defaultSystem}.activate.nixos value;
self.nixosConfigurations); };
})
systems;
in (importNodes "nixos" self.nixosConfigurations)
// (importNodes "home-manager" self.homeManagerConfigurations);
# How to make yourself slightly saner than before. So far the main checks # How to make yourself slightly saner than before. So far the main checks
# are for deploy nodes. # are for deploy nodes.