summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorandromeda <andromeda@lenovo>2026-01-06 20:15:04 +0100
committerandromeda <andromeda@lenovo>2026-01-06 20:15:04 +0100
commit14120041740dd832848123f8836a72bda01bdf71 (patch)
tree6f2804ee574727b39676becdcc37dcf660bb0290
parentbeaceffff0accc30d7394c4e2865bea5797be6c0 (diff)
add pub ssh key to remote xD
-rw-r--r--machines.nix4
1 files changed, 3 insertions, 1 deletions
diff --git a/machines.nix b/machines.nix
index 69d0d14..d089291 100644
--- a/machines.nix
+++ b/machines.nix
@@ -1,4 +1,4 @@
-{
+{config, ...}: {
lenovo = {
hostname = "lenovo";
system = "x86_64-linux";
@@ -27,8 +27,10 @@
./modules/nixos/networking/networks/109-199-104-83.nix
# 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
+ {users.users.root.openssh.authorizedKeys.keys = [config.pub-keys.ssh.andromeda];}
# boilerplate settings
./modules/nixos/common.nix