aboutsummaryrefslogtreecommitdiff
path: root/modules/containers/pinchflat
diff options
context:
space:
mode:
authortdback <tyler@tdback.net>2025-01-09 20:31:34 -0500
committertdback <tyler@tdback.net>2025-01-09 20:31:34 -0500
commite49b33fe446ca5a47f9eb04b5163609835db3dad (patch)
treef296680bcb3d97c6b987798f6742a09b72e1ebac /modules/containers/pinchflat
parented190095730b183dca262a913a0b15e74a4d27fa (diff)
fix: cleanup container configs
Diffstat (limited to 'modules/containers/pinchflat')
-rw-r--r--modules/containers/pinchflat/default.nix20
1 files changed, 8 insertions, 12 deletions
diff --git a/modules/containers/pinchflat/default.nix b/modules/containers/pinchflat/default.nix
index 8ee831f..996476d 100644
--- a/modules/containers/pinchflat/default.nix
+++ b/modules/containers/pinchflat/default.nix
@@ -1,23 +1,19 @@
-{ ... }:
+{ lib, ... }:
let
- directories = [
- "/opt/pinchflat"
- ];
+ inherit (lib.lists) singleton;
+ directory = "/opt/pinchflat";
in
{
- systemd.tmpfiles.rules = map (x: "d ${x} 0755 share share - -") directories;
+ systemd.tmpfiles.rules = builtins.map (x: "d ${x} 0755 share share - -") (singleton directory);
+
virtualisation.oci-containers.containers.pinchflat = {
image = "keglin/pinchflat:latest";
autoStart = true;
- ports = [
- "8945:8945"
- ];
+ ports = singleton "8945:8945";
volumes = [
- "/opt/pinchflat:/config"
+ "${directory}:/config"
"/tank/media/yt:/downloads"
];
- environment = {
- TZ = "America/Detroit";
- };
+ environment.TZ = "America/Detroit";
};
}