diff options
author | tdback <tyler@tdback.net> | 2025-01-26 11:36:10 -0500 |
---|---|---|
committer | tdback <tyler@tdback.net> | 2025-01-26 11:36:10 -0500 |
commit | a9b1f9b419e4db9732a1ec5eef9dcead5a8f183d (patch) | |
tree | 5c817f84a0238ee82802b36e501253d54cd383c8 /modules/default.nix | |
parent | c260b898ec2673fa10e195a9aeb937a4df0464f2 (diff) |
flake: overhaul on flake, added deploy-rs
Diffstat (limited to 'modules/default.nix')
-rw-r--r-- | modules/default.nix | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/modules/default.nix b/modules/default.nix index 49f08c5..91ab291 100644 --- a/modules/default.nix +++ b/modules/default.nix @@ -6,8 +6,17 @@ let mkModules = moduleAttrList: builtins.concatMap (moduleAttr: genModules moduleAttr) moduleAttrList; in { - mkSystem = hostname: system: nixpkgsVersion: modules: { - ${hostname} = nixpkgsVersion.lib.nixosSystem { + mkSystem = hostname: system: nixpkgsVersion: modules: rec { + deploy.nodes.${hostname} = { + inherit hostname; + profiles.system = { + user = "root"; + sshUser = "tdback"; + path = inputs.deploy-rs.lib.${system}.activate.nixos nixosConfigurations.${hostname}; + }; + }; + + nixosConfigurations.${hostname} = nixpkgsVersion.lib.nixosSystem { inherit system; modules = (mkModules modules) ++ [ "${inputs.self}/hosts/${hostname}" |