summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorandromeda <andromeda@lenovo>2026-01-10 15:30:17 +0100
committerandromeda <andromeda@lenovo>2026-01-10 15:30:17 +0100
commit45f52491650fad01e503067b62a31d102cb65cac (patch)
tree03f2dbee157684b9e061f2f3266c99896b33a7e0
parent90dd0582b0e7a2d8b971472073aaa11b0b640271 (diff)
fix ssh
-rw-r--r--machines.nix9
-rw-r--r--modules/nixos/forgejo.nix2
2 files changed, 4 insertions, 7 deletions
diff --git a/machines.nix b/machines.nix
index 21408be..8d23c09 100644
--- a/machines.nix
+++ b/machines.nix
@@ -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
diff --git a/modules/nixos/forgejo.nix b/modules/nixos/forgejo.nix
index ba3cd29..c7c0718 100644
--- a/modules/nixos/forgejo.nix
+++ b/modules/nixos/forgejo.nix
@@ -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];
}