nixos/monero: use isSystemUser = true

This commit is contained in:
Johannes Arnold 2021-05-05 14:47:46 +02:00
parent ff65166f44
commit c0853b6e2c
2 changed files with 5 additions and 6 deletions

View File

@ -315,7 +315,7 @@ in
restya-board = 284;
mighttpd2 = 285;
hass = 286;
monero = 287;
#monero = 287; # dynamically allocated as of 2021-05-08
ceph = 288;
duplicati = 289;
monetdb = 290;
@ -617,7 +617,7 @@ in
restya-board = 284;
mighttpd2 = 285;
hass = 286;
monero = 287;
# monero = 287; # dynamically allocated as of 2021-05-08
ceph = 288;
duplicati = 289;
monetdb = 290;

View File

@ -205,15 +205,14 @@ in
config = mkIf cfg.enable {
users.users.monero = {
uid = config.ids.uids.monero;
isSystemUser = true;
group = "monero";
description = "Monero daemon user";
home = cfg.dataDir;
createHome = true;
};
users.groups.monero = {
gid = config.ids.gids.monero;
};
users.groups.monero = { };
systemd.services.monero = {
description = "monero daemon";