-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
18ff1f3
commit 208814f
Showing
6 changed files
with
86 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
{ config, secrets, ... }: { | ||
services = { | ||
infomaniak = { | ||
enable = true; | ||
|
||
username = secrets.infomaniak.username; | ||
password = secrets.infomaniak.password; | ||
hostnames = [ "immich.00a.ch" ]; | ||
}; | ||
|
||
nginx = { | ||
enable = true; | ||
|
||
virtualHosts."immich.00a.ch" = { | ||
enableACME = true; | ||
forceSSL = true; | ||
|
||
locations."/" = { | ||
proxyPass = "http://127.0.0.1:${toString config.services.immich.port}"; | ||
proxyWebsockets = true; | ||
|
||
extraConfig = '' | ||
proxy_buffering off; | ||
client_max_body_size 50000M; | ||
''; | ||
}; | ||
}; | ||
}; | ||
|
||
immich = { | ||
enable = true; | ||
|
||
host = "127.0.0.1"; | ||
group = if config.services.resilio.enable then "rslsync" else "immich"; | ||
}; | ||
}; | ||
|
||
# TODO remove when https://github.com/NixOS/nixpkgs/issues/344738 fixed | ||
users.groups.immich = { }; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# TODO remove when merged https://nixpk.gs/pr-tracker.html?pr=324127 | ||
|
||
let | ||
src = let | ||
owner = "NixOS"; | ||
repo = "nixpkgs"; | ||
rev = "9d834dc4ecd42965a4357a96813780f587664d56"; | ||
sha256 = "sha256:17kjrr1x4n5zmrlcmad89slz7s9nv0ghn8c9iasx282chpawp46k"; | ||
in builtins.fetchTarball { | ||
name = "nixpkgs"; | ||
url = "https://github.com/${owner}/${repo}/archive/${rev}.tar.gz"; | ||
inherit sha256; | ||
}; | ||
in { | ||
imports = [ "${src}/nixos/modules/services/web-apps/immich.nix" ]; | ||
|
||
nixpkgs.overlays = [ (_: super: { immich = super.callPackage "${src}/pkgs/by-name/im/immich/package.nix" { }; }) ]; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters