From 042b0e7357b035ff1b34e45c30e787fde799fea6 Mon Sep 17 00:00:00 2001 From: Pablo Fraile Alonso Date: Mon, 1 Jul 2024 22:42:26 +0200 Subject: [PATCH] feat: add immich to modules --- flake.nix | 1 + modules/immich.nix | 5 +++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/flake.nix b/flake.nix index c650e82..8b45975 100644 --- a/flake.nix +++ b/flake.nix @@ -39,6 +39,7 @@ nixosModules = { haproxy = ./modules/haproxy.nix; + immich = ./modules/immich.nix; }; packages."${system}".immich = pkgs.callPackage ./pkgs/immich/default.nix {}; diff --git a/modules/immich.nix b/modules/immich.nix index feceb2d..dbba2da 100644 --- a/modules/immich.nix +++ b/modules/immich.nix @@ -1,10 +1,11 @@ -{ config, lib, pkgs, self, ... }: +{ config, lib, pkgs, ... }: let + packages.${pkgs.stdenv.system}.immich = pkgs.callPackage ../pkgs/immich/default.nix {}; cfg = config.services.immich; in with lib; { options.services.immich = { enable = mkEnableOption "Immich"; - package = mkPackageOption self.packages.${pkgs.stdenv.system} "immich" {}; + package = mkPackageOption packages.${pkgs.stdenv.system} "immich" {}; mediaLocation = mkOption { type = types.path; default = "/var/lib/immich";