refactor: remove duplication

This commit is contained in:
FUFSoB committed 2026-09-18 21:39:18 +05:00
1 parent f7036f6075
commit 8a4ba2db6a
109 files changed
+2206 -3078

No files matched your search

+1 -13
View File
@@ -3,19 +3,7 @@
let
inherit (lib) mkEnableOption mkOption types;
t = import ./types.nix { inherit lib; };
list =
description: example:
mkOption {
type = types.listOf types.str;
default = [ ];
inherit description example;
};
bool =
default: description:
mkOption {
type = types.bool;
inherit default description;
};
inherit (import ./lib.nix { inherit lib; }) list bool;
in
{
options.services.proxy-suite.zapret = {