feat(nixarr): add nixarr input

This commit is contained in:
ooks-io 2024-04-12 18:02:59 +12:00
parent b3a6c319f3
commit 4b3ad8917a
4 changed files with 192 additions and 10 deletions

View file

@ -1,4 +1,4 @@
{ lib, config, pkgs, ... }:
{ lib, config, inputs, ... }:
let
cfg = config.systemModules.services.nixarr;
@ -8,11 +8,14 @@ in
{
options.systemModules.services.nixarr.enable = mkEnableOption "Enable nixarr module";
imports = [ inputs.nixarr.nixosModules.default ];
config = mkIf cfg.enable {
nixarr = {
enable = true;
mediaDir = "/jellyfin";
stateDir = "/var/lib/nixarr";
mediaUsers = ["ooks"];
jellyfin.enable = true;
sonarr.enable = true;