Skip to content
This repository has been archived by the owner on May 3, 2024. It is now read-only.

Commit

Permalink
Merge pull request #50 from charmoniumQ/patch-1
Browse files Browse the repository at this point in the history
Changed user setup to work without nginx
  • Loading branch information
timhae authored Apr 7, 2024
2 parents f1e7a9d + f7968fa commit 2608e78
Showing 1 changed file with 14 additions and 8 deletions.
22 changes: 14 additions & 8 deletions module/firefly-iii.nix
Original file line number Diff line number Diff line change
Expand Up @@ -396,7 +396,7 @@ in
fireflyEnv = pkgs.writeText "firefly-iii.env" (fireflyEnvVars filteredConfig);
in
''
set -euo pipefail
set -exuo pipefail
umask 077
# create the .env file
Expand Down Expand Up @@ -428,13 +428,19 @@ in

# User management
users = {
users = mkIf (user == defaultUser) {
${defaultUser} = {
inherit group;
isSystemUser = true;
};
"${config.services.nginx.user}".extraGroups = [ group ];
};
users = mkMerge [
(mkIf (user == defaultUser) (
{
${defaultUser} = {
inherit group;
isSystemUser = true;
};
}
))
(mkIf config.services.nginx.enable {
"${config.services.nginx.user}".extraGroups = [ group ];
})
];
groups = mkIf (group == defaultGroup) {
${defaultGroup} = { };
};
Expand Down

0 comments on commit 2608e78

Please sign in to comment.