feat(heimdall): create user.

This commit is contained in:
CronyAkatsuki 2025-05-04 07:57:44 +02:00
parent b6f6366e2a
commit 8202be48ab
3 changed files with 15 additions and 1 deletions

View File

@ -1,5 +1,6 @@
{...}: { {...}: {
imports = [ imports = [
./openssh.nix ./openssh.nix
./user.nix
]; ];
} }

View File

@ -2,7 +2,7 @@
services.openssh = { services.openssh = {
enable = true; enable = true;
settings = { settings = {
AllowUsers = ["root"]; AllowUsers = ["root" "crony"];
X11Forwarding = false; X11Forwarding = false;
PasswordAuthentication = false; PasswordAuthentication = false;
}; };

View File

@ -0,0 +1,13 @@
{...}: {
users.users.crony = {
password = "whatever i will change it right away";
isNormalUser = true;
description = "crony";
extraGroups = [
"wheel"
];
openssh.authorizedKeys.keys = [
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIBJLduAXHWJiglmfRfkBGKffzVWkJP6porxIzw6+Zz3W crony@cronyakatsuki.xyz"
];
};
}