diff options
Diffstat (limited to 'nixos/modules')
-rw-r--r-- | nixos/modules/misc/ids.nix | 2 | ||||
-rw-r--r-- | nixos/modules/services/web-apps/tt-rss.nix | 17 |
2 files changed, 17 insertions, 2 deletions
diff --git a/nixos/modules/misc/ids.nix b/nixos/modules/misc/ids.nix index c6440dd906fdd..f44d9a7e09dc0 100644 --- a/nixos/modules/misc/ids.nix +++ b/nixos/modules/misc/ids.nix @@ -301,6 +301,7 @@ pykms = 282; kodi = 283; restya-board = 284; + tt_rss = 285; # When adding a uid, make sure it doesn't match an existing gid. And don't use uids above 399! @@ -570,6 +571,7 @@ pykms = 282; kodi = 283; restya-board = 284; + tt_rss = 285; # When adding a gid, make sure it doesn't match an existing # uid. Users and groups with the same name should have equal diff --git a/nixos/modules/services/web-apps/tt-rss.nix b/nixos/modules/services/web-apps/tt-rss.nix index 35457a1cdb8f0..a94c71a95dd65 100644 --- a/nixos/modules/services/web-apps/tt-rss.nix +++ b/nixos/modules/services/web-apps/tt-rss.nix @@ -99,8 +99,8 @@ let user = mkOption { type = types.str; - default = "nginx"; - example = "nginx"; + default = "tt_rss"; + example = "tt_rss"; description = '' User account under which both the update daemon and the web-application run. ''; @@ -553,5 +553,18 @@ let requires = ["${dbService}"]; after = ["network.target" "${dbService}"]; }; + + users = optionalAttrs (cfg.user == "tt_rss") { + extraUsers = singleton { + name = "tt_rss"; + group = "tt_rss"; + uid = config.ids.uids.tt_rss; + }; + extraGroups = singleton { + name = "tt_rss"; + gid = config.ids.gids.tt_rss; + }; + }; + }; } |