idk
This commit is contained in:
parent
d616cdca1f
commit
9dc034ec86
23 changed files with 354 additions and 26 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