From 18f3a0d21c3739a242aafa17c04c5238bbab5a41 Mon Sep 17 00:00:00 2001 From: Gliczy <129636582+Gliczy@users.noreply.github.com> Date: Fri, 13 Jun 2025 03:50:43 +0200 Subject: [PATCH] opensnitch-ui: add package option (#7260) --- modules/services/opensnitch-ui.nix | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/modules/services/opensnitch-ui.nix b/modules/services/opensnitch-ui.nix index 5c1c3d4bb..5424fa51b 100644 --- a/modules/services/opensnitch-ui.nix +++ b/modules/services/opensnitch-ui.nix @@ -5,9 +5,7 @@ ... }: let - cfg = config.services.opensnitch-ui; - in { @@ -16,6 +14,7 @@ in options = { services.opensnitch-ui = { enable = lib.mkEnableOption "Opensnitch client"; + package = lib.mkPackageOption pkgs "opensnitch-ui" { }; }; }; @@ -33,7 +32,7 @@ in Service = { Environment = [ "PATH=${config.home.profileDirectory}/bin" ]; - ExecStart = "${pkgs.opensnitch-ui}/bin/opensnitch-ui"; + ExecStart = "${cfg.package}/bin/opensnitch-ui"; }; Install = {