summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authornzbr <mail@nzbr.de>2022-12-22 21:26:03 +0100
committernzbr <mail@nzbr.de>2022-12-22 21:26:03 +0100
commitf1ad8384911c2d7ac77cae914c09c95e30fc0ecf (patch)
treecd2d14f039bbf82b23900607511866152df67d73 /modules
parent24aa3b45ec1dc475e3606385be3f8aecd8aee8a2 (diff)
fix toJSON
Diffstat (limited to 'modules')
-rw-r--r--modules/version.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/version.nix b/modules/version.nix
index 3c6438e..c87a956 100644
--- a/modules/version.nix
+++ b/modules/version.nix
@@ -60,7 +60,7 @@ with lib;
'') config.wsl.version
)}
--json)
- echo '${toJSON config.wsl.version}' | ${pkgs.jq}/bin/jq # Use jq to pretty-print the JSON
+ echo '${generators.toJSON {} config.wsl.version}' | ${pkgs.jq}/bin/jq # Use jq to pretty-print the JSON
exit 0
;;
*)