summaryrefslogtreecommitdiff
path: root/users/xmpp-template.nix
blob: f1fdd620a04faf895f7b51033fe3fca215ce0fbf (plain)
1
2
3
4
5
6
7
8
{
  name = "${firstname[0]}${lastname}"; # lowercase ascii, please
  description = "Firstname Lastname";
  extraGroups = ["xmpp"];
  group = "users";
  hashedPassword = "$(pwgen -s 32 1 | tee /dev/stderr | mkpasswd -s -m sha-512 -R 500000)";
  isNormalUser = true;
}