Initial commit

This commit is contained in:
2025-08-20 18:24:02 +03:00
commit 2dec42d487
116 changed files with 6591 additions and 0 deletions

8
lib/mkUser.nix Normal file
View 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;});
}