System: Harden SSHD and authorize key

This commit is contained in:
2026-02-17 10:53:26 +01:00
parent 3375e9fccb
commit f1b69e1931
2 changed files with 24 additions and 1 deletions
+8 -1
View File
@@ -8,6 +8,7 @@
system,
username,
headless,
publicKeys,
...
}:
with mylib.networking; {
@@ -273,6 +274,10 @@ with mylib.networking; {
];
shell = pkgs.fish;
openssh.authorizedKeys.keys = [
publicKeys.christoph.ssh
];
# We do this with HomeManager
# packages = with pkgs; [];
};
@@ -418,7 +423,9 @@ with mylib.networking; {
};
# Enable the OpenSSH daemon.
openssh.enable = true;
openssh = {
enable = true;
};
# Trims the journal if too large
journald.extraConfig = ''