aboutsummaryrefslogtreecommitdiff
path: root/modules/containers/lubelogger/default.nix
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/lubelogger/default.nix
parented190095730b183dca262a913a0b15e74a4d27fa (diff)
fix: cleanup container configs
Diffstat (limited to 'modules/containers/lubelogger/default.nix')
-rw-r--r--modules/containers/lubelogger/default.nix6
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/containers/lubelogger/default.nix b/modules/containers/lubelogger/default.nix
index eb3f58f..37155dc 100644
--- a/modules/containers/lubelogger/default.nix
+++ b/modules/containers/lubelogger/default.nix
@@ -1,16 +1,16 @@
{ lib, ... }:
let
+ inherit (lib.lists) singleton;
directory = "/opt/lubelogger";
port = "8889";
in
{
- systemd.tmpfiles.rules =
- builtins.map (x: "d ${x} 0755 share share - -") (lib.lists.singleton directory);
+ systemd.tmpfiles.rules = builtins.map (x: "d ${x} 0755 share share - -") (singleton directory);
virtualisation.oci-containers.containers.lubelogger = {
image = "ghcr.io/hargata/lubelogger:latest";
autoStart = true;
- ports = [ "${port}:8080" ];
+ ports = singleton "${port}:8080";
volumes = [
"${directory}/config:/App/config"
"${directory}/data:/App/data"