add worth yaml
This commit is contained in:
parent
777d5dba44
commit
589f999cd5
3 changed files with 1139 additions and 0 deletions
|
@ -97,6 +97,7 @@
|
||||||
currency-symbol = "€";
|
currency-symbol = "€";
|
||||||
currency-symbol-suffix = true;
|
currency-symbol-suffix = true;
|
||||||
};
|
};
|
||||||
|
worth-yml = ../../extra/worth.yml;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
networking.firewall.allowedTCPPorts = [
|
networking.firewall.allowedTCPPorts = [
|
||||||
|
|
1129
extra/worth.yml
Normal file
1129
extra/worth.yml
Normal file
File diff suppressed because it is too large
Load diff
|
@ -792,6 +792,12 @@ in
|
||||||
type = types.oneOf [ types.bool types.str (types.listOf types.str) ];
|
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
|
config = mkIf cfg.enable
|
||||||
|
@ -824,6 +830,9 @@ in
|
||||||
startScript = pkgs.writeScript "essentialsx" ''
|
startScript = pkgs.writeScript "essentialsx" ''
|
||||||
mkdir -pv plugins/Essentials
|
mkdir -pv plugins/Essentials
|
||||||
cat ${config-yml} > plugins/Essentials/config.yml
|
cat ${config-yml} > plugins/Essentials/config.yml
|
||||||
|
${if cfg.worth-yml != null then ''
|
||||||
|
cat ${cfg.worth-yml} > plugins/Essentials/worth.yml
|
||||||
|
'' else ""}
|
||||||
'';
|
'';
|
||||||
}]
|
}]
|
||||||
(
|
(
|
||||||
|
|
Loading…
Reference in a new issue