Nixfiles! :3
0

Configure Feed

Select the types of activity you want to include in your feed.

I'm so scared about this one, you can see why


Signed-off-by: MLC Bloeiman <mar@strawmelonjuice.com>

MLC Bloeiman (Jul 12, 2026, 12:54 AM +0200) b1aa25f1 6cfde3d5

+77
+77
home/host-specific/Cubchoo.nix
··· 1 1 { pkgs, config, ... }: { 2 + targets.genericLinux.enable = true; 3 + 2 4 # Shared network ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 3 5 services.podman = { 4 6 networks = { ··· 94 96 95 97 # Caddy ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 96 98 services.podman.containers.caddy = { 99 + autoStart = true; 97 100 image = "docker.io/library/caddy"; 98 101 network = "server-net"; 99 102 ports = [ ··· 215 218 force = true; 216 219 }; 217 220 221 + systemd.user.services.owncloud = { 222 + enable = true; 223 + Service = { 224 + ExecStart = pkgs.writeShellScript "owncloud-starter" '' 225 + if [ ! -f "${config.xdg.configHome}/.config/services/OwnCloud/.env" ]; then 226 + echo "Missing file : ${config.xdg.configHome}/.config/services/OwnCloud/.env" 227 + exit 1 228 + fi 229 + cd "${config.xdg.configHome}/.config/services/OwnCloud" && podman compose --env-file ./.env --project-name cloud up 230 + ''; 231 + }; 232 + }; 233 + 234 + # Define composefile 235 + xdg.configFile."services/OwnCloud/docker-compose.yml".text = '' 236 + networks: 237 + server-net: 238 + external: true 239 + owncloud-net: 240 + 241 + 242 + volumes: 243 + redis: 244 + driver: local 245 + 246 + services: 247 + owncloud: 248 + # On 8080 249 + image: owncloud/server:latest 250 + container_name: owncloud_server 251 + depends_on: 252 + - redis 253 + environment: 254 + - OWNCLOUD_DOMAIN=cloud.strawmelonjuice.com 255 + - OWNCLOUD_TRUSTED_DOMAINS=cloud.strawmelonjuice.com 256 + - OWNCLOUD_ADMIN_USERNAME=''${OWNCLOUD_ADMIN_USERNAME} 257 + - OWNCLOUD_ADMIN_PASSWORD=''${OWNCLOUD_ADMIN_PASSWORD} 258 + - OWNCLOUD_REDIS_ENABLED=true 259 + - OWNCLOUD_REDIS_HOST=redis 260 + # Main db 261 + - OWNCLOUD_DB_TYPE=pgsql 262 + - OWNCLOUD_DB_NAME=owncloud 263 + - OWNCLOUD_DB_USERNAME=owncloud 264 + - OWNCLOUD_DB_PASSWORD=owncloud 265 + - OWNCLOUD_DB_HOST=main-database:5432 266 + healthcheck: 267 + test: ["CMD", "/usr/bin/healthcheck"] 268 + interval: 30s 269 + timeout: 10s 270 + retries: 5 271 + volumes: 272 + - ${config.home.homeDirectory}/services/data/owncloud/data/:/mnt/data 273 + networks: 274 + server-net: 275 + aliases: 276 + - cloud 277 + owncloud-net: 278 + 279 + redis: 280 + image: redis:6 281 + container_name: owncloud_redis 282 + command: ["--databases", "1"] 283 + healthcheck: 284 + test: ["CMD", "redis-cli", "ping"] 285 + interval: 10s 286 + timeout: 5s 287 + retries: 5 288 + volumes: 289 + - redis:/data 290 + networks: 291 + owncloud-net: 292 + aliases: 293 + - redis 294 + ''; 218 295 # Backups ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 219 296 systemd.user.services.services-backups = { 220 297 Unit.Description = "Backups";