ssh: require public key authentication

This commit is contained in:
Sky
2026-02-09 08:29:55 +00:00
parent 1fbbf30012
commit b54217ef0a
3 changed files with 13 additions and 4 deletions

View File

@@ -1,5 +1,7 @@
{
pkgs,
secrets,
lib,
...
}:
@@ -26,6 +28,9 @@
i18n.defaultLocale = "en_US.UTF-8";
users.users.sky = {
openssh.authorizedKeys.keys = [
(lib.readFile secrets.files.keys.nixos-wsl-pub)
];
isNormalUser = true;
extraGroups = [ "wheel" ];
packages = with pkgs; [