parent
c1b5d2e360
commit
cea02da54c
2 changed files with 10 additions and 17 deletions
modules/arion
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue