box: add immich pr and set it up

This commit is contained in:
Aaron Bieber 2024-09-11 11:01:45 -06:00
parent 23a5a21fff
commit 3a22d093da
No known key found for this signature in database
3 changed files with 33 additions and 1 deletions

View File

@ -183,6 +183,22 @@
"type": "github"
}
},
"immich-module": {
"locked": {
"lastModified": 1723391208,
"narHash": "sha256-/XYgMUFCTx1oMt4Yrw9xO9BkkiVzhufCEJPOGaIby5g=",
"owner": "jvanbruegge",
"repo": "nixpkgs",
"rev": "c0ee4c1770aa1ef998c977c4cc653a07ec95d9bf",
"type": "github"
},
"original": {
"owner": "jvanbruegge",
"repo": "nixpkgs",
"rev": "c0ee4c1770aa1ef998c977c4cc653a07ec95d9bf",
"type": "github"
}
},
"kogs": {
"inputs": {
"nixpkgs": [
@ -397,6 +413,7 @@
"emacs-overlay": "emacs-overlay",
"gostart": "gostart",
"gqrss": "gqrss",
"immich-module": "immich-module",
"kogs": "kogs",
"lix-module": "lix-module",
"mcchunkie": "mcchunkie",

View File

@ -12,6 +12,11 @@
inputs.nixpkgs.follows = "unstable";
};
immich-module = {
url = "github:jvanbruegge/nixpkgs/c0ee4c1770aa1ef998c977c4cc653a07ec95d9bf";
inputs.nixpkgs.follows = "unstable";
};
sops-nix = {
url = "github:Mic92/sops-nix";
inputs = {
@ -147,7 +152,9 @@
unstablePkgsFor = forAllSystems (system:
import unstable {
inherit system;
#imports = [ ./overlays ];
imports = [
"${inputs.immich-module}/nixos/modules/services/web-apps/immich.nix"
];
});
stablePkgsFor = forAllSystems (system:
import stable {

View File

@ -2,6 +2,7 @@
, lib
, pkgs
, xinlib
, inputs
, ...
}:
let
@ -50,6 +51,7 @@ in
imports = [
./hardware-configuration.nix
#"${inputs.unstable}/nixos/modules/services/home-automation/home-assistant.nix"
"${inputs.immich-module}/nixos/modules/services/web-apps/immich.nix"
];
sops.secrets = {
@ -255,6 +257,12 @@ in
hardware.rtl-sdr.enable = true;
services = {
immich = {
enable = true;
mediaLocation = "/media/pictures/immich";
machine-learning.enable = true;
package = inputs.immich-module.legacyPackages."${pkgs.system}".pkgs.immich;
};
tsns = {
enable = true;
};