nixos/rippled: define group, fix eval after #133166

This commit is contained in:
Guillaume Girol 2021-09-18 12:00:00 +00:00
parent a654d779fe
commit feeca7dd55
2 changed files with 6 additions and 4 deletions

View file

@ -153,7 +153,7 @@ in
#btsync = 113; # unused #btsync = 113; # unused
#minecraft = 114; #dynamically allocated as of 2021-09-03 #minecraft = 114; #dynamically allocated as of 2021-09-03
vault = 115; vault = 115;
rippled = 116; # rippled = 116; #dynamically allocated as of 2021-09-18
murmur = 117; murmur = 117;
foundationdb = 118; foundationdb = 118;
newrelic = 119; newrelic = 119;

View file

@ -407,12 +407,14 @@ in
config = mkIf cfg.enable { config = mkIf cfg.enable {
users.users.rippled = users.users.rippled = {
{ description = "Ripple server user"; description = "Ripple server user";
uid = config.ids.uids.rippled; isSystemUser = true;
group = "rippled";
home = cfg.databasePath; home = cfg.databasePath;
createHome = true; createHome = true;
}; };
users.groups.rippled = {};
systemd.services.rippled = { systemd.services.rippled = {
after = [ "network.target" ]; after = [ "network.target" ];