Compare commits
2 commits
a6b4d41da1
...
a2315ae2bb
| Author | SHA1 | Date | |
|---|---|---|---|
| a2315ae2bb | |||
| 2426cdea08 |
2 changed files with 21 additions and 4 deletions
|
|
@ -1,4 +1,4 @@
|
||||||
{ homelab, ... }: let
|
{ lib, pkgs, homelab, ... }: let
|
||||||
domain = "docs.${homelab.domain}";
|
domain = "docs.${homelab.domain}";
|
||||||
sandbox = "docs-sandbox.${homelab.domain}";
|
sandbox = "docs-sandbox.${homelab.domain}";
|
||||||
in {
|
in {
|
||||||
|
|
@ -12,14 +12,31 @@ in {
|
||||||
httpSafeOrigin = "https://${sandbox}";
|
httpSafeOrigin = "https://${sandbox}";
|
||||||
blockDailyCheck = true;
|
blockDailyCheck = true;
|
||||||
disableIntegratedEviction = true;
|
disableIntegratedEviction = true;
|
||||||
disableAnonymousStore = true;
|
|
||||||
disableAnonymousPadCreation = true;
|
|
||||||
adminKeys = [
|
adminKeys = [
|
||||||
"[satr14@docs.satr14.my.id/f1A82fmBuqQka2bNqrCb1WbB9r2ex5A3rdys5xLX3Hc=]"
|
"[satr14@docs.satr14.my.id/f1A82fmBuqQka2bNqrCb1WbB9r2ex5A3rdys5xLX3Hc=]"
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
systemd.tmpfiles.rules = lib.singleton "f /var/lib/cryptpad/customize/application_config.js 0644 root root - ${pkgs.writeText "cryptpad-application-config.js" ''
|
||||||
|
(() => {
|
||||||
|
const factory = (AppConfig) => {
|
||||||
|
AppConfig.disableAnonymousPadCreation = true;
|
||||||
|
AppConfig.disableAnonymousStore = true;
|
||||||
|
AppConfig.defaultDarkTheme = 'true';
|
||||||
|
return AppConfig;
|
||||||
|
};
|
||||||
|
|
||||||
|
if (typeof(module) !== 'undefined' && module.exports) {
|
||||||
|
module.exports = factory(
|
||||||
|
require('../www/common/application_config_internal.js')
|
||||||
|
);
|
||||||
|
} else if ((typeof(define) !== 'undefined' && define !== null) && (define.amd !== null)) {
|
||||||
|
define(['/common/application_config_internal.js'], factory);
|
||||||
|
}
|
||||||
|
})();
|
||||||
|
''}";
|
||||||
|
|
||||||
fileSystems."/var/lib/private/cryptpad" = {
|
fileSystems."/var/lib/private/cryptpad" = {
|
||||||
device = "/mnt/data/apps/cryptpad";
|
device = "/mnt/data/apps/cryptpad";
|
||||||
depends = [ "/mnt/data" ];
|
depends = [ "/mnt/data" ];
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@
|
||||||
modpack = let
|
modpack = let
|
||||||
commit = "c76c7fc2037c4f9d6870d49c9444d33dd9480014";
|
commit = "c76c7fc2037c4f9d6870d49c9444d33dd9480014";
|
||||||
in pkgs.fetchPackwizModpack {
|
in pkgs.fetchPackwizModpack {
|
||||||
packHash = "";
|
packHash = "sha256-ZTzI6hhpqkirkbwcqV7ufC0XB2qSmiNYec+z/kr/HpE=";
|
||||||
url = "https://git.satr14.my.id/satr14/server-modpack/raw/commit/${commit}/pack.toml";
|
url = "https://git.satr14.my.id/satr14/server-modpack/raw/commit/${commit}/pack.toml";
|
||||||
};
|
};
|
||||||
in {
|
in {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue