box: add immich pr and set it up
This commit is contained in:
parent
23a5a21fff
commit
3a22d093da
17
flake.lock
17
flake.lock
@ -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",
|
||||
|
@ -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 {
|
||||
|
@ -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;
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user