Skip to content

Commit

Permalink
chore: try DynamicUser=true
Browse files Browse the repository at this point in the history
  • Loading branch information
dpc committed Oct 2, 2024
1 parent 16b2ae6 commit 7314c1d
Showing 1 changed file with 1 addition and 17 deletions.
18 changes: 1 addition & 17 deletions nixos/modules/services/networking/fedimintd.nix
Original file line number Diff line number Diff line change
Expand Up @@ -244,8 +244,7 @@ in
cfg.environment
];
serviceConfig = {
User = cfg.user;
Group = cfg.group;
DynamicUser = true;

StateDirectory = "fedimintd-${fedimintdName}";
StateDirectoryMode = "0700";
Expand Down Expand Up @@ -287,21 +286,6 @@ in
)
eachFedimintd;

users.users = mapAttrs'
(
fedimintdName: cfg:
(nameValuePair "fedimintd-${fedimintdName}" {
name = cfg.user;
group = cfg.group;
description = "Fedimint daemon user";
home = cfg.dataDir;
isSystemUser = true;
})
)
eachFedimintd;

users.groups = mapAttrs' (fedimintdName: cfg: (nameValuePair "${cfg.group}" { })) eachFedimintd;

services.nginx.virtualHosts = mapAttrs'
(
fedimintdName: cfg:
Expand Down

0 comments on commit 7314c1d

Please sign in to comment.