Skip to content

Commit

Permalink
feat: add immich to modules
Browse files Browse the repository at this point in the history
  • Loading branch information
Pablito2020 committed Jul 2, 2024
1 parent 5ee9671 commit 042b0e7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@

nixosModules = {
haproxy = ./modules/haproxy.nix;
immich = ./modules/immich.nix;
};

packages."${system}".immich = pkgs.callPackage ./pkgs/immich/default.nix {};
Expand Down
5 changes: 3 additions & 2 deletions modules/immich.nix
Original file line number Diff line number Diff line change
@@ -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";
Expand Down

0 comments on commit 042b0e7

Please sign in to comment.