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:
parent
5f98d2c3b9
commit
ccb1b5b719
1 changed files with 4 additions and 2 deletions
|
@ -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 = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue