1
Fork 0
mirror of https://github.com/RGBCube/ncc synced 2025-07-27 18:17:44 +00:00

fix: set the ssh port correctly

This commit is contained in:
RGBCube 2025-03-10 22:31:40 +03:00
parent 5f98d2c3b9
commit ccb1b5b719
Signed by: RGBCube
SSH key fingerprint: SHA256:CzqbPcfwt+GxFYNnFVCqoN5Itn4YFrshg1TrnACpA5M

View file

@ -6,13 +6,15 @@
hosts = self.nixosConfigurations
|> filterAttrs (_: value: value.config.services.openssh.enable)
|> mapAttrs (_: value: {
hostname = value.config.networking.ipv4.address;
user = value.config.users.users
|> attrNames
|> remove "root"
|> remove "backup"
|> head;
hostname = value.config.networking.ipv4.address;
port = head value.config.services.openssh.ports;
});
in {
secrets.sshConfig = {