commit 3ae5bfc4173e4017de1a92a5dd4808767d50172b
parent cfbfd0079d8a9215db440fe3b037c909f0779d04
Author: Katja (ctucx) <git@ctu.cx>
Date: Fri, 7 Mar 2025 12:57:13 +0100
parent cfbfd0079d8a9215db440fe3b037c909f0779d04
Author: Katja (ctucx) <git@ctu.cx>
Date: Fri, 7 Mar 2025 12:57:13 +0100
flake: set ssh port in `deploy` section
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git a/flake.nix b/flake.nix @@ -141,6 +141,7 @@ deploy.sshUser = "root"; deploy.nodes = builtins.mapAttrs (name: machine: { hostname = inputs.self.nixosConfigurations."${name}".config.networking.fqdn; + sshOpts = [ "-p" "${builtins.toString (inputs.nixpkgs.lib.head inputs.self.nixosConfigurations."${name}".config.services.openssh.ports)}" ]; profiles.system.user = "root"; profiles.system.path = inputs.deploy-rs.lib."${machine.system}".activate.nixos inputs.self.nixosConfigurations."${name}"; }) nixosMachines;