nixcfg/modules/immich/default.nix
2025-06-16 06:44:50 -04:00

28 lines
No EOL
517 B
Nix

{ config, lib, pkgs, ... }:
with lib;
let
cfg = config.modules.immich;
immichRoot = "/storage/immich"; #TODO make this configurable through nix
immichPhotos = "${immichRoot}/photos";
in
{
options = {
modules = {
immich = {
enable = mkEnableOption "Deploy immich";
};
};
};
config = mkIf cfg.enable {
services.immich = {
enable = true;
port = 2283;
host = "photos.nekomimi.pet";
mediaLocation = immichPhotos;
settings = null;
};
};
};