WS-KCNHUB/machines/kcnhub/users/mkUser.sh

18 lines
308 B
Bash
Raw Normal View History

2023-09-01 11:00:19 -04:00
#!/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;
2023-10-26 14:48:13 -04:00
extraGroups = [ ];
2023-09-01 11:00:19 -04:00
homeSize = "50g";
homeProjectId = $((projId+1));
packages = with pkgs; [
];
};
}
EOF