fix ssh
This commit is contained in:
@@ -54,12 +54,9 @@
|
||||
|
||||
# ssh through port 5522 among other things
|
||||
# andromeda@lenovo is the only user allowed access
|
||||
# ./modules/nixos/networking/hard-ssh.nix
|
||||
#./modules/nixos/networking/ssh-as-root.nix
|
||||
({config, ...}: {
|
||||
services.openssh.enable = true;
|
||||
users.users.root.openssh.authorizedKeys.keys = [config.pub-keys.ssh.andromeda];
|
||||
})
|
||||
./modules/nixos/networking/hard-ssh.nix
|
||||
./modules/nixos/networking/ssh-as-root.nix
|
||||
({config, ...}: {users.users.root.openssh.authorizedKeys.keys = [config.pub-keys.ssh.andromeda];})
|
||||
|
||||
# TODO add Impermanence to the following services
|
||||
|
||||
|
||||
@@ -23,5 +23,5 @@
|
||||
service.DISABLE_REGISTRATION = false;
|
||||
};
|
||||
};
|
||||
services.openssh.ports = [config.services.forgejo.settings.server.HTTP_PORT];
|
||||
services.openssh.ports = [config.services.forgejo.settings.server.SSH_PORT];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user