summaryrefslogtreecommitdiff
path: root/users/xmpp-template.nix
blob: ec3c754d8dfb9e6a76abc00bd1e21d24855831d0 (plain)
1
2
3
4
5
6
7
{
  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)";
}