From 554a906dbfd10537bb4f58b010edea5e651cd225 Mon Sep 17 00:00:00 2001 From: Chris Dombroski Date: Sat, 7 Sep 2024 19:23:41 -0400 Subject: [PATCH] better module --- modules/zwave-js-ui.nix | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/modules/zwave-js-ui.nix b/modules/zwave-js-ui.nix index 5a09f72..b725986 100644 --- a/modules/zwave-js-ui.nix +++ b/modules/zwave-js-ui.nix @@ -21,10 +21,10 @@ in description = '' Serial port for the Z-Wave controller. - Used for permissions only; must be additionally set in the application - ''; - example = "/dev/ttyUSB0"; - }; + Used for permissions only; must be additionally set in the application + ''; + example = "/dev/ttyUSB0"; + }; }; config = mkIf cfg.enable { assertions = [ @@ -44,7 +44,10 @@ in RuntimeDirectory = "zwave-js-ui"; StateDirectory = "zwave-js-ui"; RootDirectory = "/run/zwave-js-ui"; - BindReadOnlyPaths = [ "/etc" "/nix/store" ]; + BindReadOnlyPaths = [ + "/etc" + "/nix/store" + ]; BindPaths = [ "/var/lib/zwave-js-ui" ]; DeviceAllow = [ cfg.serialPort ]; DynamicUser = true;