From fae42bcdb25c44b98c52688e1df4f62f1e742d71 Mon Sep 17 00:00:00 2001 From: nyanloutre Date: Mon, 28 Oct 2024 22:18:03 +0100 Subject: [PATCH] import flaresolverr module --- flake.nix | 11 ++++++++++- systems/LoutreOS/configuration.nix | 3 ++- systems/LoutreOS/medias.nix | 9 ++++++++- 3 files changed, 20 insertions(+), 3 deletions(-) diff --git a/flake.nix b/flake.nix index 202075b..ba4b897 100644 --- a/flake.nix +++ b/flake.nix @@ -21,7 +21,15 @@ }; }; - outputs = { self, nixpkgs, nixpkgs-unstable, nixpkgs-4a3fc4cf7, simple-nixos-mailserver, dogetipbot-telegram, ipmihddtemp }: { + outputs = { + self, + nixpkgs, + nixpkgs-unstable, + nixpkgs-4a3fc4cf7, + simple-nixos-mailserver, + dogetipbot-telegram, + ipmihddtemp + }@inputs: { packages.x86_64-linux = (import ./pkgs nixpkgs.legacyPackages.x86_64-linux); @@ -48,6 +56,7 @@ nixosConfigurations.loutreos = nixpkgs.lib.nixosSystem rec { system = "x86_64-linux"; specialArgs = { + inputs = inputs; pkgs-unstable = import nixpkgs-unstable { inherit system; }; diff --git a/systems/LoutreOS/configuration.nix b/systems/LoutreOS/configuration.nix index 3c1d316..ccb68d8 100644 --- a/systems/LoutreOS/configuration.nix +++ b/systems/LoutreOS/configuration.nix @@ -2,10 +2,11 @@ # your system. Help is available in the configuration.nix(5) man page # and in the NixOS manual (accessible by running ‘nixos-help’). -{ config, pkgs, ... }: +{ config, pkgs, inputs, ... }: { imports = [ + "${inputs.nixpkgs-unstable}/nixos/modules/services/misc/flaresolverr.nix" ../common-cli.nix ./hardware-configuration.nix ./users.nix diff --git a/systems/LoutreOS/medias.nix b/systems/LoutreOS/medias.nix index e0c9566..2b9e642 100644 --- a/systems/LoutreOS/medias.nix +++ b/systems/LoutreOS/medias.nix @@ -26,7 +26,14 @@ enable = true; package = pkgs-unstable.sonarr; }; - prowlarr.enable = true; + flaresolverr = { + enable = false; + package = pkgs-unstable.flaresolverr; + }; + prowlarr = { + enable = true; + package = pkgs-unstable.prowlarr; + }; jellyfin = { enable = true;