From c84446a6c4d7ba85c883d806497b23c51d790a1f Mon Sep 17 00:00:00 2001 From: Matt Layher Date: Tue, 20 Feb 2024 11:00:03 -0500 Subject: [PATCH] nixos/lib: add mdlayher account --- nixos/lib/system.nix | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/nixos/lib/system.nix b/nixos/lib/system.nix index 92c09ec..8bfdaca 100644 --- a/nixos/lib/system.nix +++ b/nixos/lib/system.nix @@ -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; };