add immich
This commit is contained in:
parent
67e4051a2d
commit
058f9bcebd
1 changed files with 28 additions and 0 deletions
28
modules/immich/default.nix
Normal file
28
modules/immich/default.nix
Normal file
|
@ -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;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
Loading…
Add table
Add a link
Reference in a new issue