Skip to content

Commit 4797f6f

Browse files
committed
feat: enable & configure wud container
Signed-off-by: Reputable2722 <153411261+Reputable2772@users.noreply.github.com>
1 parent 1a4f79c commit 4797f6f

4 files changed

Lines changed: 30 additions & 0 deletions

File tree

Config/config.nix

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -331,6 +331,11 @@ rec {
331331
# envFiles = null;
332332
# env = null;
333333
# };
334+
wud = {
335+
dir = null;
336+
envFiles = [ "wud" ];
337+
env = null;
338+
};
334339
};
335340
};
336341
guest = { };
@@ -361,6 +366,7 @@ rec {
361366
"proton-openvpn.age".publicKeys = [ users.wickedwizard.secrets.encryption.key ];
362367
"ente.age".publicKeys = [ users.wickedwizard.secrets.encryption.key ];
363368
"affine.age".publicKeys = [ users.wickedwizard.secrets.encryption.key ];
369+
"wud.age".publicKeys = [ users.wickedwizard.secrets.encryption.key ];
364370
}
365371

366372
/**
@@ -382,4 +388,5 @@ rec {
382388
affine.age - Contains DB_DATABASE, DB_USERNAME, DB_PASSWORD, POSTGRES_USER, POSTGRES_DB, POSTGRES_PASSWORD. They match respectively. It also contains DATABASE_URL, which is in the format of
383389
DATABASE_URL=postgresql://${DB_USERNAME}:${DB_PASSWORD}@affine_postgres:5432/${DB_DATABASE}
384390
Nested environment variables as shown above do not work, so set the value directly.
391+
wud.age - Contains env variables like WUD_TRIGGER_NTFY_UPDATENOTIF_TOPIC, etc. Refer to https://getwud.github.io/wud/#/configuration/ for more info.
385392
*/

Config/wud.age

264 Bytes
Binary file not shown.

Users/WickedWizard/Programs/Selfhosted/Containers/default.nix

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,6 @@
1313
# ./qbittorrent.nix
1414
./syncthing.nix
1515
./vaultwarden.nix
16+
./wud.nix
1617
];
1718
}
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
{
2+
config,
3+
config',
4+
lib,
5+
...
6+
}:
7+
let
8+
utils = import ./utils.nix { inherit config config' lib; };
9+
in
10+
{
11+
containers.caddy.services.wud = "wud:3000";
12+
13+
programs.quadlets.quadlets."wud.container" = lib.attrsets.recursiveUpdate {
14+
Container = {
15+
Image = "ghcr.io/getwud/wud:main";
16+
Volume = [
17+
"/run/user/1000/podman/podman.sock:/var/run/docker.sock"
18+
];
19+
}
20+
// utils.appendEnv "wud";
21+
} (utils.containerDefaults "wud" "systemd-caddy");
22+
}

0 commit comments

Comments
 (0)