0
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-07-13 05:38:57 +03:00

nixos/c2fmzq-server: allow setting bool settings to false

This commit is contained in:
Gutyina Gergő 2024-01-07 23:40:40 +01:00
parent c13348cde7
commit 7247d16af6
No known key found for this signature in database
2 changed files with 9 additions and 1 deletions

View file

@ -7,7 +7,11 @@ let
argsFormat = {
type = with lib.types; attrsOf (nullOr (oneOf [ bool int str ]));
generate = lib.cli.toGNUCommandLineShell { };
generate = lib.cli.toGNUCommandLineShell {
mkBool = k: v: [
"--${k}=${if v then "true" else "false"}"
];
};
};
in {
options.services.c2fmzq-server = {