services: set isSystemUser for service users

'isSystemUser' has to be explicitly set in NixOS 21.05.
Previously, it was the implicit default.
This commit is contained in:
Erik Arvstedt 2021-08-05 00:48:59 +02:00
parent 0ef66c920b
commit e44f78ebb8
No known key found for this signature in database
GPG Key ID: 33312B944DD97846
10 changed files with 14 additions and 2 deletions

View File

@ -388,7 +388,10 @@ in {
} // nbLib.allowLocalIPAddresses;
};
users.users.${cfg.user}.group = cfg.group;
users.users.${cfg.user} = {
isSystemUser = true;
group = cfg.group;
};
users.groups.${cfg.group} = {};
users.groups.bitcoinrpc-public = {};
nix-bitcoin.operator.groups = [ cfg.group ];

View File

@ -230,6 +230,7 @@ in {
}; in self;
users.users.${cfg.nbxplorer.user} = {
isSystemUser = true;
group = cfg.nbxplorer.group;
extraGroups = [ "bitcoinrpc-public" ]
++ optional cfg.btcpayserver.lbtc cfg.liquidd.group;
@ -237,6 +238,7 @@ in {
};
users.groups.${cfg.nbxplorer.group} = {};
users.users.${cfg.btcpayserver.user} = {
isSystemUser = true;
group = cfg.btcpayserver.group;
extraGroups = [ cfg.nbxplorer.group ]
++ optional (cfg.btcpayserver.lightningBackend == "clightning") cfg.clightning.user;

View File

@ -133,8 +133,8 @@ in
};
users.users.${user} = {
group = group;
isSystemUser = true;
group = group;
};
users.groups.${group} = {};
};

View File

@ -140,6 +140,7 @@ in {
};
users.users.${cfg.user} = {
isSystemUser = true;
group = cfg.group;
extraGroups = [ "bitcoinrpc-public" ];
};

View File

@ -106,6 +106,7 @@ in {
};
users.users.${cfg.user} = {
isSystemUser = true;
group = cfg.group;
extraGroups = [ "bitcoinrpc-public" ] ++ optionals cfg.high-memory [ bitcoind.user ];
};

View File

@ -270,6 +270,7 @@ in {
};
users.users.${cfg.user} = {
isSystemUser = true;
group = cfg.group;
home = cfg.dataDir;
# Allow access to the tor control socket, needed for payjoin onion service creation

View File

@ -240,6 +240,7 @@ in {
};
users.users.${cfg.user} = {
isSystemUser = true;
group = cfg.group;
extraGroups = [ "bitcoinrpc-public" ];
};

View File

@ -263,6 +263,7 @@ in {
};
users.users.${cfg.user} = {
isSystemUser = true;
group = cfg.group;
extraGroups = [ "bitcoinrpc-public" ];
home = cfg.dataDir; # lnd creates .lnd dir in HOME

View File

@ -97,6 +97,7 @@ in {
};
users.users.recurring-donations = {
isSystemUser = true;
group = "recurring-donations";
extraGroups = [ config.services.clightning.group ];
};

View File

@ -65,6 +65,7 @@ in {
services.clightning.enable = true;
users.users.${cfg.user} = {
isSystemUser = true;
group = cfg.group;
extraGroups = [ config.services.clightning.group ];
};