1
0
Fork 0
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:
Matt Layher 2024-02-20 11:00:03 -05:00
parent 4f654c671a
commit c84446a6c4

View file

@ -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;
};