Simplify use of lib

This commit is contained in:
Oliver Davies 2024-12-10 21:40:33 +00:00
parent 3d4bca0ada
commit 0f90bcfd70
25 changed files with 124 additions and 74 deletions

View file

@ -5,10 +5,12 @@
...
}:
{
options.features.homelab.immich.enable = lib.mkEnableOption "Enable immich";
with lib;
config = lib.mkIf config.features.homelab.immich.enable {
{
options.features.homelab.immich.enable = mkEnableOption "Enable immich";
config = mkIf config.features.homelab.immich.enable {
services.immich.enable = true;
environment.systemPackages = [ pkgs.immich-cli ];