feat(heimdall): create user.
This commit is contained in:
parent
b6f6366e2a
commit
8202be48ab
@ -1,5 +1,6 @@
|
|||||||
{...}: {
|
{...}: {
|
||||||
imports = [
|
imports = [
|
||||||
./openssh.nix
|
./openssh.nix
|
||||||
|
./user.nix
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
@ -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;
|
||||||
};
|
};
|
||||||
|
13
modules/servers/general/user.nix
Normal file
13
modules/servers/general/user.nix
Normal 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"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user