diff options
| author | Collin Williams <96917990+bluedragon1221@users.noreply.github.com> | 2026-01-24 07:14:28 -0600 |
|---|---|---|
| committer | Collin Williams <96917990+bluedragon1221@users.noreply.github.com> | 2026-01-24 07:14:28 -0600 |
| commit | 16adebfb9e6c0c3e3eb0bc07398b90adf48e914e (patch) | |
| tree | 577a739d2b776857ddecdf3de8a37fff1354f541 /modules/services | |
| parent | ce7f1d44b874dcaf711dfe7118ef18f9394033df (diff) | |
fine we'll just do it the right way
Diffstat (limited to 'modules/services')
| -rw-r--r-- | modules/services/nixos/ssh.nix | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/modules/services/nixos/ssh.nix b/modules/services/nixos/ssh.nix index 6c1b2fc..1826a5e 100644 --- a/modules/services/nixos/ssh.nix +++ b/modules/services/nixos/ssh.nix @@ -32,16 +32,14 @@ in { "jupiter".publicKey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIPB7feUHl5qoD5zF9AMOV2meViA+wZYdVvbVjPkggZf8"; "ganymede".publicKey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAINlr+53UmlGVP1blkdNl6NFqn1w2umFJyjH1EVUPKIy9"; }; + }; - authorizedKeysFiles = [ - "/etc/ssh/authorized_keys.d/locals" + users.users.${config.collinux.user.name}.openssh = { + authorizedKeys.keys = [ + "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIAvxtKW0rmRBi8J67gLrLv8Zv338AcmZ3P20DePiUfnX mercury" ]; }; - environment.etc."ssh/authorized_keys.d/locals".text = '' - ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIAvxtKW0rmRBi8J67gLrLv8Zv338AcmZ3P20DePiUfnX mercury - ''; - systemd.services."openssh" = lib.mkIf config.collinux.services.networking.networkd.enable { after = lib.mkAfter ["network-online.target"]; wants = lib.mkAfter ["network-online.target"]; |
