38 lines
860 B
Nix
38 lines
860 B
Nix
|
{}:
|
||
|
{
|
||
|
name ? "ttrss",
|
||
|
document_root ? "/usr/share/webapps/${name}",
|
||
|
systemd_run ? "/run/${name}",
|
||
|
persistent_dir ? "/var/lib/${name}"
|
||
|
}:
|
||
|
rec {
|
||
|
inherit name document_root systemd_run persistent_dir;
|
||
|
|
||
|
lock_directory = "${systemd_run}/lock";
|
||
|
cache_directory = "${systemd_run}/cache";
|
||
|
feed_icons_directory = "${persistent_dir}/feed-icons";
|
||
|
|
||
|
ro_directories = [];
|
||
|
rw_directories = [
|
||
|
lock_directory
|
||
|
cache_directory
|
||
|
feed_icons_directory
|
||
|
];
|
||
|
|
||
|
directories_modes = {
|
||
|
"${systemd_run}" = "0555";
|
||
|
"${lock_directory}" = "0755";
|
||
|
"${cache_directory}" = "0755";
|
||
|
"${cache_directory}/upload" = "0755";
|
||
|
"${cache_directory}/images" = "0755";
|
||
|
"${cache_directory}/export" = "0755";
|
||
|
"${persistent_dir}/feed-icons" = "0755";
|
||
|
};
|
||
|
|
||
|
postgresql = {
|
||
|
username = name;
|
||
|
password = "ttrsspw";
|
||
|
database = name;
|
||
|
};
|
||
|
}
|