feat: proxy-gui

This commit is contained in:
FUFSoB committed 2026-09-15 00:15:53 +05:00
1 parent 8ed4ab9a8d
commit 7de094078c
44 files changed
+2994 -2016

No files matched your search

+1
View File
@@ -17,6 +17,7 @@
./warp.nix
./tg-ws-proxy.nix
./geodata.nix
./gui.nix
./tray.nix
./tui.nix
./user-control.nix
+25
View File
@@ -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.";
};
};
}
+13 -16
View File
@@ -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"))
];
}