ops/nixos: set group for isSystemUser users

This commit is contained in:
Luke Granger-Brown 2021-09-16 19:14:30 +00:00
parent cb7811898c
commit 19782a9e63
3 changed files with 8 additions and 2 deletions

View file

@ -121,7 +121,7 @@ in {
lukegb.extraGroups = [ "wheel" "content" "deluge" ];
content = {
isSystemUser = true;
extraGroups = [ "content" ];
group = "content";
};
plex.extraGroups = [ "content" ];
deluge.extraGroups = [ "content" ];

View file

@ -118,6 +118,7 @@ in
deployer = {
isSystemUser = true;
uid = 1001;
group = "deployer";
hashedPassword = "!";
useDefaultShell = true;
home = "/var/lib/deployer";
@ -128,6 +129,7 @@ in
];
};
};
users.groups.deployer = {};
security.sudo.extraRules = [{
users = [ "deployer" ];
commands = [{

View file

@ -12,7 +12,11 @@ in {
80 443
];
users.users.minotarproxy.isSystemUser = true;
users.users.minotarproxy = {
isSystemUser = true;
group = "minotarproxy";
};
users.groups.minotarproxy = {};
systemd.services.minotarproxy = {
description = "Minotar proxy";