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
|
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 = {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue