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"
|
"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": {
|
"kogs": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"nixpkgs": [
|
"nixpkgs": [
|
||||||
@ -397,6 +413,7 @@
|
|||||||
"emacs-overlay": "emacs-overlay",
|
"emacs-overlay": "emacs-overlay",
|
||||||
"gostart": "gostart",
|
"gostart": "gostart",
|
||||||
"gqrss": "gqrss",
|
"gqrss": "gqrss",
|
||||||
|
"immich-module": "immich-module",
|
||||||
"kogs": "kogs",
|
"kogs": "kogs",
|
||||||
"lix-module": "lix-module",
|
"lix-module": "lix-module",
|
||||||
"mcchunkie": "mcchunkie",
|
"mcchunkie": "mcchunkie",
|
||||||
|
@ -12,6 +12,11 @@
|
|||||||
inputs.nixpkgs.follows = "unstable";
|
inputs.nixpkgs.follows = "unstable";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
immich-module = {
|
||||||
|
url = "github:jvanbruegge/nixpkgs/c0ee4c1770aa1ef998c977c4cc653a07ec95d9bf";
|
||||||
|
inputs.nixpkgs.follows = "unstable";
|
||||||
|
};
|
||||||
|
|
||||||
sops-nix = {
|
sops-nix = {
|
||||||
url = "github:Mic92/sops-nix";
|
url = "github:Mic92/sops-nix";
|
||||||
inputs = {
|
inputs = {
|
||||||
@ -147,7 +152,9 @@
|
|||||||
unstablePkgsFor = forAllSystems (system:
|
unstablePkgsFor = forAllSystems (system:
|
||||||
import unstable {
|
import unstable {
|
||||||
inherit system;
|
inherit system;
|
||||||
#imports = [ ./overlays ];
|
imports = [
|
||||||
|
"${inputs.immich-module}/nixos/modules/services/web-apps/immich.nix"
|
||||||
|
];
|
||||||
});
|
});
|
||||||
stablePkgsFor = forAllSystems (system:
|
stablePkgsFor = forAllSystems (system:
|
||||||
import stable {
|
import stable {
|
||||||
|
@ -2,6 +2,7 @@
|
|||||||
, lib
|
, lib
|
||||||
, pkgs
|
, pkgs
|
||||||
, xinlib
|
, xinlib
|
||||||
|
, inputs
|
||||||
, ...
|
, ...
|
||||||
}:
|
}:
|
||||||
let
|
let
|
||||||
@ -50,6 +51,7 @@ in
|
|||||||
imports = [
|
imports = [
|
||||||
./hardware-configuration.nix
|
./hardware-configuration.nix
|
||||||
#"${inputs.unstable}/nixos/modules/services/home-automation/home-assistant.nix"
|
#"${inputs.unstable}/nixos/modules/services/home-automation/home-assistant.nix"
|
||||||
|
"${inputs.immich-module}/nixos/modules/services/web-apps/immich.nix"
|
||||||
];
|
];
|
||||||
|
|
||||||
sops.secrets = {
|
sops.secrets = {
|
||||||
@ -255,6 +257,12 @@ in
|
|||||||
hardware.rtl-sdr.enable = true;
|
hardware.rtl-sdr.enable = true;
|
||||||
|
|
||||||
services = {
|
services = {
|
||||||
|
immich = {
|
||||||
|
enable = true;
|
||||||
|
mediaLocation = "/media/pictures/immich";
|
||||||
|
machine-learning.enable = true;
|
||||||
|
package = inputs.immich-module.legacyPackages."${pkgs.system}".pkgs.immich;
|
||||||
|
};
|
||||||
tsns = {
|
tsns = {
|
||||||
enable = true;
|
enable = true;
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user