From 7331903a668e8fba31a4e508b0ec9007611e9a59 Mon Sep 17 00:00:00 2001 From: makefu Date: Thu, 13 Jul 2023 00:00:31 +0200 Subject: [PATCH] bam/ha-ara-menu:init --- 2configs/bam/ha-ara-menu.nix | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 2configs/bam/ha-ara-menu.nix diff --git a/2configs/bam/ha-ara-menu.nix b/2configs/bam/ha-ara-menu.nix new file mode 100644 index 0000000..077c6e3 --- /dev/null +++ b/2configs/bam/ha-ara-menu.nix @@ -0,0 +1,17 @@ + {pkgs,ha-ara-menu, ... }: + let + pkg = ha-ara-menu.packages.default; + in { + systemd.services.ha-ara-menu = { + after = [ "mosquitto.service" ]; + description = "ha-ara-menu"; + wantedBy = [ "multi-user.target" ]; + environment = { + }; + serviceConfig = { + ExecStart = "${pkg}/bin/ha-ara-menu"; + DynamicUser = true; + Restart = "always"; + }; + }; +}