diff --git a/modules/immich/default.nix b/modules/immich/default.nix new file mode 100644 index 0000000..16715d4 --- /dev/null +++ b/modules/immich/default.nix @@ -0,0 +1,28 @@ +{ 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; + }; + }; +}; \ No newline at end of file