From b3f013f232ca2ef2fb48a2a4d787bcaf38a0bedf Mon Sep 17 00:00:00 2001 From: spl3g Date: Tue, 2 Sep 2025 20:16:01 +0300 Subject: feat: add settings to gonic options --- nixos/serverModules/gonic.nix | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to 'nixos/serverModules/gonic.nix') diff --git a/nixos/serverModules/gonic.nix b/nixos/serverModules/gonic.nix index 526d79e..6bdf984 100644 --- a/nixos/serverModules/gonic.nix +++ b/nixos/serverModules/gonic.nix @@ -1,4 +1,4 @@ -{ config, lib, ... }: +{ config, lib, pkgs, ... }: with lib; let cfg = config.gonic; @@ -54,9 +54,16 @@ in A directory where gonic will keep their files. ''; }; + + settings = mkOption { + default = {}; + description = '' + Additional gonic settings + ''; + }; }; }; - + config = mkIf cfg.enable { nixpkgs.overlays = [ (final: prev: { @@ -82,7 +89,7 @@ in playlists-path = [cfg.podcastsPath]; podcast-path = [cfg.playlistsPath]; db-path = ["${cfg.stateDir}/gonic.db"]; - }; + } // cfg.settings; }; }; } -- cgit v1.2.3