aboutsummaryrefslogtreecommitdiff
path: root/modules/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'modules/default.nix')
-rw-r--r--modules/default.nix13
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}"