feat: proxy-gui
This commit is contained in:
44 files changed
+2994
-2016
No files matched your search
@@ -17,6 +17,7 @@
|
||||
./warp.nix
|
||||
./tg-ws-proxy.nix
|
||||
./geodata.nix
|
||||
./gui.nix
|
||||
./tray.nix
|
||||
./tui.nix
|
||||
./user-control.nix
|
||||
|
||||
@@ -0,0 +1,25 @@
|
||||
{ lib, ... }:
|
||||
|
||||
let
|
||||
inherit (lib) mkEnableOption mkOption types;
|
||||
in
|
||||
{
|
||||
options.services.proxy-suite.gui = {
|
||||
enable = mkEnableOption "Proxy Suite GUI, a desktop app with a tray icon for everything proxy-ctl controls at runtime";
|
||||
|
||||
autostart = mkOption {
|
||||
type = types.bool;
|
||||
default = true;
|
||||
description = ''
|
||||
Start the GUI hidden in the tray with graphical sessions, as the
|
||||
`proxy-suite-gui` systemd user unit on `graphical-session.target`.
|
||||
'';
|
||||
};
|
||||
|
||||
refreshInterval = mkOption {
|
||||
type = types.ints.positive;
|
||||
default = 3;
|
||||
description = "Status refresh interval, in seconds.";
|
||||
};
|
||||
};
|
||||
}
|
||||
@@ -1,22 +1,19 @@
|
||||
{ lib, ... }:
|
||||
|
||||
let
|
||||
inherit (lib) mkEnableOption mkOption types;
|
||||
p =
|
||||
path:
|
||||
[
|
||||
"services"
|
||||
"proxy-suite"
|
||||
]
|
||||
++ lib.splitString "." path;
|
||||
in
|
||||
{
|
||||
options.services.proxy-suite.tray = {
|
||||
enable = mkEnableOption "the system tray indicator";
|
||||
|
||||
autostart = mkOption {
|
||||
type = types.bool;
|
||||
default = true;
|
||||
description = "Start the tray in graphical sessions (XDG autostart).";
|
||||
};
|
||||
|
||||
pollInterval = mkOption {
|
||||
type = types.ints.positive;
|
||||
default = 5;
|
||||
description = "Status refresh interval, in seconds.";
|
||||
};
|
||||
};
|
||||
# The tray indicator became Proxy Suite GUI, which has the tray icon built in.
|
||||
imports = [
|
||||
(lib.mkRenamedOptionModule (p "tray.enable") (p "gui.enable"))
|
||||
(lib.mkRenamedOptionModule (p "tray.autostart") (p "gui.autostart"))
|
||||
(lib.mkRenamedOptionModule (p "tray.pollInterval") (p "gui.refreshInterval"))
|
||||
];
|
||||
}
|
||||
Reference in new issue
Block a user