mirror of
https://github.com/RGBCube/ncc
synced 2025-07-28 02:27:44 +00:00
fix: set the ssh port correctly
This commit is contained in:
parent
5f98d2c3b9
commit
ccb1b5b719
1 changed files with 4 additions and 2 deletions
|
@ -6,13 +6,15 @@
|
||||||
hosts = self.nixosConfigurations
|
hosts = self.nixosConfigurations
|
||||||
|> filterAttrs (_: value: value.config.services.openssh.enable)
|
|> filterAttrs (_: value: value.config.services.openssh.enable)
|
||||||
|> mapAttrs (_: value: {
|
|> mapAttrs (_: value: {
|
||||||
hostname = value.config.networking.ipv4.address;
|
|
||||||
|
|
||||||
user = value.config.users.users
|
user = value.config.users.users
|
||||||
|> attrNames
|
|> attrNames
|
||||||
|> remove "root"
|
|> remove "root"
|
||||||
|> remove "backup"
|
|> remove "backup"
|
||||||
|> head;
|
|> head;
|
||||||
|
|
||||||
|
hostname = value.config.networking.ipv4.address;
|
||||||
|
|
||||||
|
port = head value.config.services.openssh.ports;
|
||||||
});
|
});
|
||||||
in {
|
in {
|
||||||
secrets.sshConfig = {
|
secrets.sshConfig = {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue