summaryrefslogtreecommitdiff
path: root/hosts/poweredge/immich.nix
diff options
context:
space:
mode:
authorTim Keller <tjk@tjkeller.xyz>2026-06-17 18:44:14 -0500
committerTim Keller <tjk@tjkeller.xyz>2026-06-17 18:44:14 -0500
commit55767854e13dfe5e26311f222e3d713cf11ac3b3 (patch)
tree9c413f9183032bd68bee8ba0d1153a7eea83356c /hosts/poweredge/immich.nix
parent03ca9e47cd89564a51d01ffe621489efa3a8f7e7 (diff)
downloadnixos-55767854e13dfe5e26311f222e3d713cf11ac3b3.tar.xz
nixos-55767854e13dfe5e26311f222e3d713cf11ac3b3.zip
move nvidia settings to separate file for poweredge host and immich/jellyfin containersHEADmaster
Diffstat (limited to 'hosts/poweredge/immich.nix')
-rw-r--r--hosts/poweredge/immich.nix25
1 files changed, 3 insertions, 22 deletions
diff --git a/hosts/poweredge/immich.nix b/hosts/poweredge/immich.nix
index 24b32c2..444a0f2 100644
--- a/hosts/poweredge/immich.nix
+++ b/hosts/poweredge/immich.nix
@@ -36,14 +36,12 @@ in {
};
config = { lib, pkgs, config, ... }: {
+ imports = [ ./nvidia.nix ];
+
# Network
networking.interfaces.eth0.useDHCP = true;
networking.firewall.allowedTCPPorts = [ 80 ]; # Caddy
- # Configure nixpkgs for nvidia/cuda
- nixpkgs.config.allowUnfree = true;
- nixpkgs.config.cudaSupport = true;
-
# Immich
services.immich = {
enable = true;
@@ -64,7 +62,7 @@ in {
# Enable the ML microservice with CUDA
machine-learning.enable = true;
};
- #environment.systemPackages = with pkgs; [ immich immich-cli ];
+ environment.systemPackages = with pkgs; [ immich immich-cli ];
# Reverse proxy
services.caddy = {
@@ -74,23 +72,6 @@ in {
'';
};
- # NVIDIA
- services.xserver.videoDrivers = [ "nvidia" ]; # xserver.videoDrivers does not imply X
- hardware.graphics.enable = true;
- hardware.nvidia = {
- modesetting.enable = true; # Required
- nvidiaSettings = false; # Don't need gui
- open = false;
- package = config.boot.kernelPackages.nvidiaPackages.legacy_580; # Must match host
- };
-
- # Packages
- environment.systemPackages = with pkgs; [
- immich
- immich-cli
- config.hardware.nvidia.package # nvidia-smi
- ];
-
system.stateVersion = "25.11";
};
};