From 0f1c9f25cf03cd5ed62db05c461af7e13f84a7b6 Mon Sep 17 00:00:00 2001 From: Bernardo Meurer Date: Wed, 18 Dec 2019 00:25:52 +0000 Subject: [PATCH] beets: allow custom package (#952) --- modules/programs/beets.nix | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/modules/programs/beets.nix b/modules/programs/beets.nix index 152bfd30..efd5f8fd 100644 --- a/modules/programs/beets.nix +++ b/modules/programs/beets.nix @@ -28,6 +28,17 @@ in ''; }; + package = mkOption { + type = types.package; + default = pkgs.beets; + defaultText = literalExample "pkgs.beets"; + example = literalExample "(pkgs.beets.override { enableCheck = true; })"; + description = '' + The beets package to use. + Can be used to specify extensions. + ''; + }; + settings = mkOption { type = types.attrs; default = {}; @@ -40,7 +51,7 @@ in }; config = mkIf cfg.enable { - home.packages = [ pkgs.beets ]; + home.packages = [ cfg.package ]; xdg.configFile."beets/config.yaml".text = builtins.toJSON config.programs.beets.settings;