mirror of
https://github.com/nix-community/home-manager
synced 2024-11-15 23:59:45 +01:00
beets: allow custom package (#952)
This commit is contained in:
parent
8abaa025ec
commit
0f1c9f25cf
1 changed files with 12 additions and 1 deletions
|
@ -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 <literal>beets</literal> package to use.
|
||||||
|
Can be used to specify extensions.
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
|
||||||
settings = mkOption {
|
settings = mkOption {
|
||||||
type = types.attrs;
|
type = types.attrs;
|
||||||
default = {};
|
default = {};
|
||||||
|
@ -40,7 +51,7 @@ in
|
||||||
};
|
};
|
||||||
|
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
home.packages = [ pkgs.beets ];
|
home.packages = [ cfg.package ];
|
||||||
|
|
||||||
xdg.configFile."beets/config.yaml".text =
|
xdg.configFile."beets/config.yaml".text =
|
||||||
builtins.toJSON config.programs.beets.settings;
|
builtins.toJSON config.programs.beets.settings;
|
||||||
|
|
Loading…
Reference in a new issue