From d418d4220335a6fcb9c0dfbfc6f904d932925bc1 Mon Sep 17 00:00:00 2001 From: Chris Dombroski Date: Tue, 12 Nov 2024 11:31:44 -0500 Subject: [PATCH] back to custom docker image --- nixos-modules/docker-zwave.nix | 36 +++++++++++++++++----------------- 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/nixos-modules/docker-zwave.nix b/nixos-modules/docker-zwave.nix index 4d96af3..b92f3b6 100644 --- a/nixos-modules/docker-zwave.nix +++ b/nixos-modules/docker-zwave.nix @@ -5,24 +5,24 @@ podman.enable = true; oci-containers.containers = { zwave-js-ui = { - image = "zwavejs/zwave-js-ui:latest"; -# image = "my-zwave-js-ui:latest"; -# imageFile = pkgs.dockerTools.buildLayeredImage { -# name = "my-zwave-js-ui"; -# tag = "latest"; -# contents = [ -# pkgs.cacert -# pkgs.busybox -# ]; -# config = { -# Cmd = [ "${inputs.self.packages.${pkgs.stdenv.system}.zwave-js-ui}/bin/zwave-js-ui" ]; -# Env = [ -# "STORE_DIR=/usr/src/app/store" -# "ZWAVEJS_EXTERNAL_CONFIG=/usr/src/app/store/.config-db" -# "SSL_CERT_FILE=${pkgs.cacert}/etc/ssl/certs/ca-bundle.crt" -# ]; -# }; -# }; +# image = "zwavejs/zwave-js-ui:latest"; + image = "my-zwave-js-ui:latest"; + imageFile = pkgs.dockerTools.buildLayeredImage { + name = "my-zwave-js-ui"; + tag = "latest"; + contents = [ + pkgs.cacert + pkgs.busybox + ]; + config = { + Cmd = [ "${inputs.self.packages.${pkgs.stdenv.system}.zwave-js-ui}/bin/zwave-js-ui" ]; + Env = [ + "STORE_DIR=/usr/src/app/store" + "ZWAVEJS_EXTERNAL_CONFIG=/usr/src/app/store/.config-db" + "SSL_CERT_FILE=${pkgs.cacert}/etc/ssl/certs/ca-bundle.crt" + ]; + }; + }; volumes = [ "zwave-config:/usr/src/app/store" ]; environment = { TZ = "America/New_York";