mirror of
https://github.com/oqyude/nixos.git
synced 2026-06-10 20:20:41 +03:00
123
This commit is contained in:
@@ -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;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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";
|
||||
|
||||
@@ -1,5 +0,0 @@
|
||||
self: super: {
|
||||
pkgs-src = {
|
||||
immich = super.callPackage ./package.nix { };
|
||||
};
|
||||
}
|
||||
@@ -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;
|
||||
# };
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user