servo: persist the freshrss data

This commit is contained in:
2022-10-13 21:49:54 -07:00
parent 43123e78cb
commit fcf60bae35
2 changed files with 8 additions and 1 deletions

View File

@@ -11,8 +11,9 @@
sane.home-manager.enable = true; sane.home-manager.enable = true;
sane.home-manager.extraPackages = [ sane.home-manager.extraPackages = [
# for administering matrix # for administering services
pkgs.matrix-synapse pkgs.matrix-synapse
pkgs.freshrss
]; ];
sane.impermanence.enable = true; sane.impermanence.enable = true;
sane.services.duplicity.enable = true; sane.services.duplicity.enable = true;

View File

@@ -1,3 +1,6 @@
# import feeds with e.g.
# sudo -u freshrss -g freshrss FRESHRSS_DATA_PATH=/var/lib/freshrss ./result/cli/import-for-user.php --user admin --filename /home/colin/.config/newsflashFeeds.opml
{ config, lib, ... }: { config, lib, ... }:
{ {
sops.secrets.freshrss_passwd = { sops.secrets.freshrss_passwd = {
@@ -5,6 +8,9 @@
owner = config.users.users.freshrss.name; owner = config.users.users.freshrss.name;
mode = "400"; mode = "400";
}; };
sane.impermanence.service-dirs = [
{ user = "freshrss"; group = "freshrss"; directory = "/var/lib/freshrss"; }
];
users.users.freshrss.uid = config.sane.allocations.freshrss-uid; users.users.freshrss.uid = config.sane.allocations.freshrss-uid;
users.groups.freshrss.gid = config.sane.allocations.freshrss-gid; users.groups.freshrss.gid = config.sane.allocations.freshrss-gid;