Update nixos/modules/services/misc/cgminer.nix

Co-authored-by: Robert Hensing <roberth@users.noreply.github.com>
This commit is contained in:
Felix Bühler 2023-07-02 19:03:11 +02:00 committed by GitHub
parent f3719756b5
commit 7cc9ced775
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -11,7 +11,7 @@ let
mapAttrsToList (n: v: ''"${n}": "${(concatStringsSep "," (map convType v))}"'')
(foldAttrs (n: a: [n] ++ a) [] cfg.hardware);
mergedConfig = with builtins;
mapAttrsToList (n: v: ''"${n}": ${if isBool v then (convType v) else ''"${convType v}"''}'')
mapAttrsToList (n: v: ''"${n}": ${if isBool v then convType v else ''"${convType v}"''}'')
cfg.config;
cgminerConfig = pkgs.writeText "cgminer.conf" ''