diff --git a/machines/kcnhub/users/mkUser.sh b/machines/kcnhub/users/mkUser.sh new file mode 100755 index 0000000..87595e0 --- /dev/null +++ b/machines/kcnhub/users/mkUser.sh @@ -0,0 +1,17 @@ +#!/usr/bin/env bash + +projId=$(grep -r "homeProjectId" *.nix | grep -o "[0-9]*" | sort | tail -n1) + +cat < $1.nix +{ pkgs, ... }: { + users.users.$1 = { + isNormalUser = true; + extraGroups = [ "wheel" ]; + homeSize = "50g"; + homeProjectId = $((projId+1)); + packages = with pkgs; [ + + ]; + }; +} +EOF