feat: refactor the modules/servers directory.
This commit is contained in:
parent
4e783c052b
commit
8b754d3a7e
69 changed files with 61 additions and 62 deletions
17
modules/servers/common/user.nix
Normal file
17
modules/servers/common/user.nix
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
{config, ...}: {
|
||||
# Not reall that safe but convenient af
|
||||
security.sudo.wheelNeedsPassword = false;
|
||||
|
||||
users.users.crony = {
|
||||
linger = true;
|
||||
isNormalUser = true;
|
||||
description = "crony";
|
||||
hashedPasswordFile = "${config.age.secrets.crony-passwd.path}";
|
||||
extraGroups = [
|
||||
"wheel"
|
||||
];
|
||||
openssh.authorizedKeys.keys = [
|
||||
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIBJLduAXHWJiglmfRfkBGKffzVWkJP6porxIzw6+Zz3W crony@cronyakatsuki.xyz"
|
||||
];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue