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:
parent
c13348cde7
commit
7247d16af6
2 changed files with 9 additions and 1 deletions
|
@ -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 = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue