Add nextcloud user

This commit is contained in:
Ivan R. 2023-08-18 17:37:31 +05:00
parent 82cdb2ea9a
commit 78c9996d9d
No known key found for this signature in database
GPG key ID: 56C7BAAE859B302C

View file

@ -1,21 +1,29 @@
{ config, pkgs, ... }:
{
# Define a user account. Don't forget to set a password with passwd.
users.users.lumin = {
users.users = {
lumin = {
isNormalUser = true;
extraGroups = [ "wheel" ]; # Enable sudo for the user.
packages = with pkgs; [];
openssh.authorizedKeys.keys = [ "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQDbC39+hMx+JsowHuhI7tQDaG907iVJIY84ztLxdt/2DgPRBVNNhf0k/I/oB7lrLLuMzJnAgEEjBYHbeQqkhjmOE8J+rowXnRBY6uOAK1v12bqwRwCk8nnb4neGiv+TeIQ8uAdySjh5G+mdPbHYTfzw9th24KEQ++oHL2YUZ4kD/C1E337OvJz969qUPQsCOx31Qqo2GTiubJ4Tx4pqo5oBpNQGM1fPbs1/h+K4HV3pgTpEFLIIDe+yvjPJoCibCAYyU0fUf7Ji8kJWQT92eH58fH+VL7epfAfsaSwiqmMVJU7ORVOPYkZdpdXF87rakEydgdIVcTcttuRjKWoO4EDMYq/b1M9t+fa2lCTA+7TIBlrvjQzGUwrXIdvwBCKRiupZF/Jkz+YH104+sxc1DwxGe+BWzGTuH89ArElGQGpPoh01O7rlzaY1GpecM+ljpd3ra8hE+eJ212rBLVnANZhf/9AYEwnw2cBSi9n1xhJ05VqCHUELPfgiwANP/hLCxLM= lumin@thinkpad" ];
};
users.users.maddy = {
maddy = {
isNormalUser = true;
extraGroups = [ "acme" ];
};
nextcloud = {
isNormalUser = true;
group = "nextcloud";
};
};
users.groups = {
mastodon = {
members = [ "nginx" ];
members = [ "mastodon" config.services.nginx.user ];
};
nextcloud = {
members = [ "nextcloud" config.services.nginx.user ];
};
};
}