refactor(arion): remove toYAML and use writeYAML instead

This commit is contained in:
matt1432 2024-03-19 13:36:02 -04:00
parent c1b5d2e360
commit cea02da54c
2 changed files with 10 additions and 17 deletions
modules/arion

View file

@ -27,17 +27,6 @@ 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;