aboutsummaryrefslogtreecommitdiff
path: root/modules/containers/freshrss
diff options
context:
space:
mode:
Diffstat (limited to 'modules/containers/freshrss')
-rw-r--r--modules/containers/freshrss/default.nix7
1 files changed, 3 insertions, 4 deletions
diff --git a/modules/containers/freshrss/default.nix b/modules/containers/freshrss/default.nix
index 5f352a7..7cbe944 100644
--- a/modules/containers/freshrss/default.nix
+++ b/modules/containers/freshrss/default.nix
@@ -1,16 +1,15 @@
-{ lib, ... }:
+{ ... }:
let
- inherit (lib.lists) singleton;
directory = "/opt/freshrss";
port = "8888";
in
{
- systemd.tmpfiles.rules = builtins.map (x: "d ${x} 0755 share share - -") (singleton directory);
+ systemd.tmpfiles.rules = builtins.map (x: "d ${x} 0755 share share - -") [ directory ];
virtualisation.oci-containers.containers.freshrss = {
image = "freshrss/freshrss:latest";
autoStart = true;
- ports = singleton "${port}:80";
+ ports = [ "${port}:80" ];
volumes = [
"${directory}/data:/var/www/FreshRSS/data"
"${directory}/extensions:/var/www/FreshRSS/extensions"