finally works again

This commit is contained in:
2026-08-03 13:22:28 -04:00
parent 4d72aa979a
commit a7f8971df1
16 changed files with 128 additions and 168 deletions
+6 -12
View File
@@ -1,8 +1,5 @@
{ config, lib, pkgs, ... }:
let
me = config.network.nodes.${config.network.node};
in
{
networking.firewall = {
enable = true;
@@ -16,19 +13,16 @@ in
KbdInteractiveAuthentication = false;
};
listenAddresses = [{
addr = me.address-vpn;
addr = "0.0.0.0";
port = 22;
}];
};
users.users.lilac.openssh.authorizedKeys.keys = [
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIKhCH6YN63AWFsR1wZ6wJdZ2jlTtYBSkY5FnLrWoLKeg"
];
users.users.root.openssh.authorizedKeys.keys = [
config.network.nodes.laptop.ssh
config.network.nodes.desktop.ssh
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIKhCH6YN63AWFsR1wZ6wJdZ2jlTtYBSkY5FnLrWoLKeg"
];
users.users.lilac = lib.mkIf (config.network.node != "vps") {
openssh.authorizedKeys.keys = [
config.network.nodes.laptop.ssh
config.network.nodes.desktop.ssh
];
};
}