1
0
Fork 0
mirror of https://github.com/nix-community/home-manager.git synced 2025-11-08 19:46:05 +01:00

opensnitch-ui: add package option (#7260)

This commit is contained in:
Gliczy 2025-06-13 03:50:43 +02:00 committed by GitHub
parent 0215073a70
commit 18f3a0d21c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -5,9 +5,7 @@
... ...
}: }:
let let
cfg = config.services.opensnitch-ui; cfg = config.services.opensnitch-ui;
in in
{ {
@ -16,6 +14,7 @@ in
options = { options = {
services.opensnitch-ui = { services.opensnitch-ui = {
enable = lib.mkEnableOption "Opensnitch client"; enable = lib.mkEnableOption "Opensnitch client";
package = lib.mkPackageOption pkgs "opensnitch-ui" { };
}; };
}; };
@ -33,7 +32,7 @@ in
Service = { Service = {
Environment = [ "PATH=${config.home.profileDirectory}/bin" ]; Environment = [ "PATH=${config.home.profileDirectory}/bin" ];
ExecStart = "${pkgs.opensnitch-ui}/bin/opensnitch-ui"; ExecStart = "${cfg.package}/bin/opensnitch-ui";
}; };
Install = { Install = {