diff options
-rw-r--r-- | nixos/modules/programs/htop.nix | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/nixos/modules/programs/htop.nix b/nixos/modules/programs/htop.nix index 2682ced490ca3..777ea709836e6 100644 --- a/nixos/modules/programs/htop.nix +++ b/nixos/modules/programs/htop.nix @@ -9,7 +9,8 @@ let fmt = value: if isList value then concatStringsSep " " (map fmt value) else if isString value then value else - if isBool value || isInt value then toString value else + if isBool value then if value then "1" else "0" else + if isInt value then toString value else throw "Unrecognized type ${typeOf value} in htop settings"; in |