···301301 pykms = 282;
302302 kodi = 283;
303303 restya-board = 284;
304304+ tt_rss = 285;
304305305306 # When adding a uid, make sure it doesn't match an existing gid. And don't use uids above 399!
306307···570571 pykms = 282;
571572 kodi = 283;
572573 restya-board = 284;
574574+ tt_rss = 285;
573575574576 # When adding a gid, make sure it doesn't match an existing
575577 # uid. Users and groups with the same name should have equal
+15-2
nixos/modules/services/web-apps/tt-rss.nix
···9999100100 user = mkOption {
101101 type = types.str;
102102- default = "nginx";
103103- example = "nginx";
102102+ default = "tt_rss";
103103+ example = "tt_rss";
104104 description = ''
105105 User account under which both the update daemon and the web-application run.
106106 '';
···553553 requires = ["${dbService}"];
554554 after = ["network.target" "${dbService}"];
555555 };
556556+557557+ users = optionalAttrs (cfg.user == "tt_rss") {
558558+ extraUsers = singleton {
559559+ name = "tt_rss";
560560+ group = "tt_rss";
561561+ uid = config.ids.uids.tt_rss;
562562+ };
563563+ extraGroups = singleton {
564564+ name = "tt_rss";
565565+ gid = config.ids.gids.tt_rss;
566566+ };
567567+ };
568568+556569 };
557570}