Add mkUser Script
parent
749232ed04
commit
432d86acc9
|
@ -0,0 +1,17 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
projId=$(grep -r "homeProjectId" *.nix | grep -o "[0-9]*" | sort | tail -n1)
|
||||
|
||||
cat <<EOF > $1.nix
|
||||
{ pkgs, ... }: {
|
||||
users.users.$1 = {
|
||||
isNormalUser = true;
|
||||
extraGroups = [ "wheel" ];
|
||||
homeSize = "50g";
|
||||
homeProjectId = $((projId+1));
|
||||
packages = with pkgs; [
|
||||
|
||||
];
|
||||
};
|
||||
}
|
||||
EOF
|
Loading…
Reference in New Issue