broken: Added initial support for authelia + lldap oidc for nextcloud
This commit is contained in:
@@ -8,6 +8,7 @@
|
||||
./ryu.nix
|
||||
./services
|
||||
./programs
|
||||
./containers
|
||||
];
|
||||
|
||||
sops = {
|
||||
|
||||
12
nixos/ryu/containers/default.nix
Normal file
12
nixos/ryu/containers/default.nix
Normal file
@@ -0,0 +1,12 @@
|
||||
{device, ...}: {
|
||||
imports = [
|
||||
./immich-machine-learning.nix
|
||||
];
|
||||
virtualisation = {
|
||||
docker.enable = true;
|
||||
oci-containers.backend = "docker";
|
||||
};
|
||||
users.extraUsers.${device.user}.extraGroups = [
|
||||
"docker"
|
||||
];
|
||||
}
|
||||
26
nixos/ryu/containers/immich-machine-learning.nix
Normal file
26
nixos/ryu/containers/immich-machine-learning.nix
Normal file
@@ -0,0 +1,26 @@
|
||||
{pkgs, ...}: let
|
||||
port = 3003;
|
||||
in {
|
||||
virtualisation.oci-containers = {
|
||||
backend = "docker";
|
||||
containers = {
|
||||
immich-machine-learning = {
|
||||
image = "ghcr.io/immich-app/immich-machine-learning:v${pkgs.immich.version}-cuda";
|
||||
ports = [
|
||||
"0.0.0.0:${toString port}:3003"
|
||||
];
|
||||
volumes = [
|
||||
"model-cache:/cache"
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
networking.firewall.allowedTCPPorts = [port];
|
||||
environment.systemPackages = with pkgs; [
|
||||
nvidia-docker
|
||||
nvidia-container-toolkit
|
||||
];
|
||||
# services.caddy.virtualHosts."ml.ryu.darksailor.dev".extraConfig = ''
|
||||
# reverse_proxy localhost:${toString port}
|
||||
# '';
|
||||
}
|
||||
Reference in New Issue
Block a user