feat: add toYAML function
All checks were successful
Discord / discord commits (push) Has been skipped

This commit is contained in:
matt1432 2024-02-18 00:08:10 -05:00
parent a572a13f04
commit ab77c767b6

View file

@ -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;