aboutsummaryrefslogtreecommitdiff
path: root/nixos/serverModules
diff options
context:
space:
mode:
authorspl3g <spleefer6@yandex.ru>2025-09-02 20:16:01 +0300
committerspl3g <spleefer6@yandex.ru>2025-09-02 20:16:01 +0300
commitb3f013f232ca2ef2fb48a2a4d787bcaf38a0bedf (patch)
treee10939633198300739e330d392cd5743c301d3fd /nixos/serverModules
parent07a92dfebda93413b8274c2838c8049f6a66a10e (diff)
feat: add settings to gonic options
Diffstat (limited to 'nixos/serverModules')
-rw-r--r--nixos/serverModules/gonic.nix13
1 files changed, 10 insertions, 3 deletions
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;
};
};
}