mirror of
https://github.com/mdlayher/homelab.git
synced 2024-12-14 11:47:32 +00:00
nixos/lib: add mdlayher account
This commit is contained in:
parent
4f654c671a
commit
c84446a6c4
1 changed files with 14 additions and 0 deletions
|
@ -128,6 +128,8 @@ in {
|
|||
mutableUsers = false;
|
||||
|
||||
# Set up matt's account, enable sudo and SSH login.
|
||||
#
|
||||
# TODO: remove pending migration.
|
||||
users.matt = {
|
||||
isNormalUser = true;
|
||||
uid = 1000;
|
||||
|
@ -139,6 +141,18 @@ in {
|
|||
];
|
||||
};
|
||||
|
||||
# Set up user account, enable sudo and SSH login.
|
||||
users.mdlayher = {
|
||||
isNormalUser = true;
|
||||
uid = 1001;
|
||||
extraGroups = [ "dialout" "libvirtd" "networkmanager" "wheel" ];
|
||||
hashedPassword = secrets.users.matt_password_hash;
|
||||
|
||||
openssh.authorizedKeys.keys = [
|
||||
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIN5i5d0mRKAf02m+ju+I1KrAYw3Ny2IHXy88mgyragBN Matt Layher (mdlayher@gmail.com)"
|
||||
];
|
||||
};
|
||||
|
||||
# Set up root login for emergency console access.
|
||||
users.root.hashedPassword = secrets.users.root_password_hash;
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue