aboutsummaryrefslogtreecommitdiff
path: root/modules/containers/pinchflat/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'modules/containers/pinchflat/default.nix')
-rw-r--r--modules/containers/pinchflat/default.nix7
1 files changed, 3 insertions, 4 deletions
diff --git a/modules/containers/pinchflat/default.nix b/modules/containers/pinchflat/default.nix
index 996476d..6f9c825 100644
--- a/modules/containers/pinchflat/default.nix
+++ b/modules/containers/pinchflat/default.nix
@@ -1,15 +1,14 @@
-{ lib, ... }:
+{ ... }:
let
- inherit (lib.lists) singleton;
directory = "/opt/pinchflat";
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.pinchflat = {
image = "keglin/pinchflat:latest";
autoStart = true;
- ports = singleton "8945:8945";
+ ports = [ "8945:8945" ];
volumes = [
"${directory}:/config"
"/tank/media/yt:/downloads"