Initial commit
This commit is contained in:
8
lib/mkUser.nix
Normal file
8
lib/mkUser.nix
Normal file
@@ -0,0 +1,8 @@
|
||||
{ lib }: {
|
||||
mkUser = password: wheel: {
|
||||
isNormalUser = true;
|
||||
extraGroups = [ "video" "libvirtd" "lp" (if wheel then "wheel" else "") ];
|
||||
} // (if (lib.hasPrefix "/" password)
|
||||
then {hashedPasswordFile = password;}
|
||||
else {hashedPassword = password;});
|
||||
}
|
Reference in New Issue
Block a user