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

+16 -13
View File
@@ -17,21 +17,24 @@ let
];
};
# Visible options only (renamed aliases are hidden), packages shown by name.
# Visible options only (renamed aliases are hidden, and so are groups left
# with nothing but aliases), packages shown by name.
visibleConfig =
opts: cfg:
lib.mapAttrs (
name: opt:
if !lib.isOption opt then
visibleConfig opt cfg.${name}
else if lib.isDerivation cfg.${name} then
{
__pretty = _: "pkgs.${lib.getName cfg.${name}}";
val = null;
}
else
cfg.${name}
) (lib.filterAttrs (name: opt: name != "_module" && (opt.visible or true) != false) opts);
lib.filterAttrs (name: value: lib.isOption opts.${name} || value != { }) (
lib.mapAttrs (
name: opt:
if !lib.isOption opt then
visibleConfig opt cfg.${name}
else if lib.isDerivation cfg.${name} then
{
__pretty = _: "pkgs.${lib.getName cfg.${name}}";
val = null;
}
else
cfg.${name}
) (lib.filterAttrs (name: opt: name != "_module" && (opt.visible or true) != false) opts)
);
optionDocs = pkgs.nixosOptionsDoc {
options.services.proxy-suite = eval.options.services.proxy-suite;