chore: move lanzaboote to system module and remove nixpkgs-immich input

* lanzaboote is needed to evaluate nix configuration, even if it's not used
in the system.
* removed nixpkgs-immich since nixpkgs now has immich service

Signed-off-by: Chinmay D. Pai <chinmaydpai@gmail.com>
This commit is contained in:
Chinmay D. Pai 2024-09-30 11:14:57 +05:30
parent 40d4792bc8
commit 104d4b6c8d
Signed by: thunderbottom
GPG Key ID: 75507BE256F40CED
2 changed files with 3 additions and 8 deletions

View File

@ -23,11 +23,11 @@
disko.nixosModules.disko
srvos.nixosModules.common
srvos.nixosModules.mixins-systemd-boot
inputs.lanzaboote.nixosModules.lanzaboote
];
systems.hosts.thonkpad.modules = [
inputs.nixos-hardware.nixosModules.lenovo-thinkpad-x1-12th-gen
inputs.lanzaboote.nixosModules.lanzaboote
];
systems.hosts.thonkpad.specialArgs = {
inherit userdata;
@ -101,7 +101,6 @@
nil.inputs.nixpkgs.follows = "nixpkgs";
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
nixpkgs-immich.url = "github:nixos/nixpkgs/d026e3fa1ad0d78d9072d9afdeae515d2d68acae";
nixos-hardware.url = "github:nixos/nixos-hardware";
nur.url = "github:nix-community/nur";

View File

@ -1,13 +1,9 @@
{
config,
inputs,
lib,
pkgs,
...
}: {
imports = [
"${inputs.nixpkgs-immich}/nixos/modules/services/web-apps/immich.nix"
];
options.snowflake.services.immich = {
enable = lib.mkEnableOption "Enable immich service";
@ -24,7 +20,7 @@
lib.mkIf cfg.enable {
services.immich = {
enable = true;
package = inputs.nixpkgs-immich.legacyPackages.x86_64-linux.immich;
package = pkgs.immich;
mediaLocation = "/storage/media/immich-library";
port = 9121;
};