···301 pykms = 282;
302 kodi = 283;
303 restya-board = 284;
0304305 # When adding a uid, make sure it doesn't match an existing gid. And don't use uids above 399!
306···570 pykms = 282;
571 kodi = 283;
572 restya-board = 284;
0573574 # When adding a gid, make sure it doesn't match an existing
575 # uid. Users and groups with the same name should have equal
···301 pykms = 282;
302 kodi = 283;
303 restya-board = 284;
304+ tt_rss = 285;
305306 # When adding a uid, make sure it doesn't match an existing gid. And don't use uids above 399!
307···571 pykms = 282;
572 kodi = 283;
573 restya-board = 284;
574+ tt_rss = 285;
575576 # When adding a gid, make sure it doesn't match an existing
577 # uid. Users and groups with the same name should have equal
+15-2
nixos/modules/services/web-apps/tt-rss.nix
···99100 user = mkOption {
101 type = types.str;
102- default = "nginx";
103- example = "nginx";
104 description = ''
105 User account under which both the update daemon and the web-application run.
106 '';
···553 requires = ["${dbService}"];
554 after = ["network.target" "${dbService}"];
555 };
0000000000000556 };
557}
···99100 user = mkOption {
101 type = types.str;
102+ default = "tt_rss";
103+ example = "tt_rss";
104 description = ''
105 User account under which both the update daemon and the web-application run.
106 '';
···553 requires = ["${dbService}"];
554 after = ["network.target" "${dbService}"];
555 };
556+557+ users = optionalAttrs (cfg.user == "tt_rss") {
558+ extraUsers = singleton {
559+ name = "tt_rss";
560+ group = "tt_rss";
561+ uid = config.ids.uids.tt_rss;
562+ };
563+ extraGroups = singleton {
564+ name = "tt_rss";
565+ gid = config.ids.gids.tt_rss;
566+ };
567+ };
568+569 };
570}