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:
parent
40d4792bc8
commit
104d4b6c8d
@ -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";
|
||||
|
@ -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;
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user