add worth yaml

This commit is contained in:
Charlotte 🦝 Delenk 2022-02-21 10:25:17 +01:00
parent 777d5dba44
commit 589f999cd5
Signed by: darkkirb
GPG key ID: AB2BD8DAF2E37122
3 changed files with 1139 additions and 0 deletions

View file

@ -97,6 +97,7 @@
currency-symbol = "";
currency-symbol-suffix = true;
};
worth-yml = ../../extra/worth.yml;
};
};
networking.firewall.allowedTCPPorts = [

1129
extra/worth.yml Normal file

File diff suppressed because it is too large Load diff

View file

@ -792,6 +792,12 @@ in
type = types.oneOf [ types.bool types.str (types.listOf types.str) ];
};
};
worth-yml = mkOption
{
default = null;
description = "Worth YML Path";
type = types.path;
};
};
config = mkIf cfg.enable
@ -824,6 +830,9 @@ in
startScript = pkgs.writeScript "essentialsx" ''
mkdir -pv plugins/Essentials
cat ${config-yml} > plugins/Essentials/config.yml
${if cfg.worth-yml != null then ''
cat ${cfg.worth-yml} > plugins/Essentials/worth.yml
'' else ""}
'';
}]
(