mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-01-31 10:58:02 +00:00
config: add home-manager configurations deploy nodes
This commit is contained in:
parent
fa2509b578
commit
d8b28ce617
26
flake.nix
26
flake.nix
@ -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.
|
||||||
|
Loading…
Reference in New Issue
Block a user