diff --git a/README.md b/README.md index 2bf982e..106eea4 100644 --- a/README.md +++ b/README.md @@ -44,8 +44,8 @@ Don't believe me? Look at the ["License"](./UNLICENSE) :D - 💈 [Stylix (WIP)](https://github.com/danth/stylix) - 🖥️ [Minecraft Servers](https://github.com/Infinidoge/nix-minecraft) -> [!NOTE] -> This Config was supposed to be Catppuccin only, until I got bored of it, +> \[!NOTE\] +> This Config was supposed to be Catppuccin only, until I got bored of it, > which is why Stylix was added as an afterthought. It is very incomplete! > Help is appreciated! diff --git a/hosts/rs/configuration.nix b/hosts/rs/configuration.nix index f952c45..5daf2c5 100644 --- a/hosts/rs/configuration.nix +++ b/hosts/rs/configuration.nix @@ -107,7 +107,10 @@ }; services = { - media.immich.enable = true; + media = { + immich.enable = true; + redlib.enable = true; + }; misc.glance = { enable = true; diff --git a/services/media/default.nix b/services/media/default.nix index 23b4772..43de0b9 100644 --- a/services/media/default.nix +++ b/services/media/default.nix @@ -1 +1,6 @@ -{ imports = [ ./immich.nix ]; } +{ + imports = [ + ./immich.nix + ./redlib.nix + ]; +} diff --git a/services/media/redlib.nix b/services/media/redlib.nix new file mode 100644 index 0000000..20c3cd6 --- /dev/null +++ b/services/media/redlib.nix @@ -0,0 +1,18 @@ +{ config, lib, ... }: +let + cfg = config.services.media.redlib; +in +{ + options.services.media.redlib.enable = lib.mkEnableOption "Redlib"; + + config.services.redlib = { + inherit (cfg) enable; + openFirewall = true; + port = 8090; + settings = { + REDLIB_DEFAULT_BLUR_SPOILER = "on"; + REDLIB_DEFAULT_SHOW_NSFW = "on"; + REDLIB_DEFAULT_BLUR_NSFW = "on"; + }; + }; +}