Skip to content

Instantly share code, notes, and snippets.

@mfenniak
mfenniak / immich.nix
Last active September 20, 2024 20:58
NixOS configuration for Immich, based upon upstream docker-compose.yml
{ config, ... }:
let
immichHost = "immich.example.com"; # TODO: put your immich domain name here
immichRoot = "/tank/immich"; # TODO: Tweak these to your desired storage locations
immichPhotos = "${immichRoot}/photos";
immichAppdataRoot = "${immichRoot}/appdata";
immichVersion = "release";
immichExternalVolume1 = "/tank/BackupData/Google Photos/[email protected]"; # TODO: if external volumes are desired
@rickhull
rickhull / configuration.nix
Last active May 16, 2025 12:09
Prometheus, Grafana, Loki, Promtail on NixOS
# MONITORING: services run on loopback interface
# nginx reverse proxy exposes services to network
# - grafana:3010
# - prometheus:3020
# - loki:3030
# - promtail:3031
# prometheus: port 3020 (8020)
#
services.prometheus = {
@xgugeng
xgugeng / seafile-caddy.conf
Last active October 6, 2024 21:23
Caddyfile for Seafile
seafile.example.com {
log {
output file /var/log/caddy/seafile.log
}
# Optional for Cloudflare
tls {
dns cloudflare {env.CF_API_TOKEN}
}