This commit is contained in:
2025-08-06 19:55:24 +03:00
parent 1dd1848673
commit f33bb778be
8 changed files with 27 additions and 6 deletions
+4
View File
@@ -92,6 +92,7 @@
inputs:
let
flakeContext = { inherit inputs; };
immich = import ./pkgs/immich; #{ inherit pkgs; };
in
{
nixosConfigurations = {
@@ -142,5 +143,8 @@
};
# homeModules = {
# };
packages."x86_64-linux" = {
immich = immich.package;
};
};
}
+2
View File
@@ -10,6 +10,7 @@
./server
./users.nix
./options.nix
#./overlays.nix
./temp.nix
#(lib.mkIf (config.xlib.device.type == "server") (import ./server { inherit inputs config lib pkgs ; }))
@@ -17,4 +18,5 @@
nix-index-database.nixosModules.nix-index # nix-index module
];
_module.args.inputs = inputs;
services.immich.package = lib.mkIf (config.xlib.device.type == "server") inputs.self.packages.x86_64-linux.immich;
}
+2 -1
View File
@@ -3,12 +3,13 @@
config,
lib,
pkgs,
#pkgs-src,
...
}:
{
services = {
immich = {
#package = latest.immich;
#package = pkgs-src.immich;
enable = true;
port = 2283;
host = "0.0.0.0";
-5
View File
@@ -1,5 +0,0 @@
self: super: {
pkgs-src = {
immich = super.callPackage ./package.nix { };
};
}
+19
View File
@@ -0,0 +1,19 @@
# self: super: {
# pkgs-src = {
# immich = super.callPackage ./package.nix { };
# };
# }
{ pkgs }:
let
sources = pkgs.lib.importJSON ./sources.json;
in {
package = pkgs.callPackage ./package.nix {
# src = pkgs.fetchFromGitHub {
# owner = "immich-app";
# repo = "immich";
# rev = "v${sources.version}";
# hash = sources.hash;
# };
};
}