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:
parent
0215073a70
commit
18f3a0d21c
1 changed files with 2 additions and 3 deletions
|
|
@ -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 = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue