{ inputs, pkgs, ... }: { virtualisation = { containers.enable = true; podman.enable = true; oci-containers.containers = { zwave-js-ui = { image = "my-zwave-js-ui:latest"; imageFile = pkgs.dockerTools.buildLayeredImage { name = "my-zwave-js-ui"; tag = "latest"; contents = [ pkgs.cacert pkgs.bash-interactive ]; config.Cmd = [ "${inputs.self.packages.${pkgs.stdenv.system}.zwave-js-ui}/bin/zwave-js-ui" ]; }; volumes = [ "zwave-config:/usr/src/app/store" ]; environment = { TZ = "America/New_York"; STORE_DIR = "/usr/src/app/store"; ZWAVEJS_EXTERNAL_CONFIG = "/usr/src/app/store/.config-db"; }; labels = { swag = "enable"; swag_url = "zwave.icanttype.org"; swag_port = "8091"; }; extraOptions = [ "--network=www" "--device=/dev/ttyACM0:/dev/zwave" ]; }; }; }; }