diff --git a/modules/arion.nix b/modules/arion.nix index 80828a9..b204f26 100644 --- a/modules/arion.nix +++ b/modules/arion.nix @@ -27,6 +27,17 @@ in { options.arion = { enable = mkEnableOption (lib.mdDoc "My custom arion config layer module"); + # TODO: move this somewhere else + toYAML = mkOption { + type = types.anything; + readOnly = true; + default = name: attrs: + pkgs.runCommandCC name {} '' + echo '${builtins.toJSON attrs}' | + ${pkgs.remarshal}/bin/remarshal --if json --of yaml > $out + ''; + }; + rwDataDir = mkOption { default = "/var/lib/arion"; type = types.str;