Add default admin user and include in host/installer

This commit is contained in:
randogoth 2026-02-01 19:54:28 +02:00
parent e5118737af
commit 906a668987
3 changed files with 13 additions and 0 deletions

11
modules/users/admin.nix Normal file
View file

@ -0,0 +1,11 @@
{ lib, ... }:
{
users.users.admin = {
isNormalUser = true;
extraGroups = [ "wheel" "networkmanager" ];
hashedPassword = "$6$HrwFoHtYRwiTZsYo$gKNOvkQhjalczOLgoTXvVu1MaihYP4BdBnVpWkdoAf.5MAiV2mMPRibYyGv9ti1Q63AhGK7n4wOPjAU0O74mK0";
};
security.sudo.wheelNeedsPassword = lib.mkDefault true;
}