pakig
This commit is contained in:
parent
4ab23dde50
commit
2621d7ba87
|
@ -3,9 +3,6 @@ with lib;
|
|||
let
|
||||
cfg = config.programs.musicutil;
|
||||
yamlFormat = pkgs.formats.yaml { };
|
||||
optionalPackage = opt:
|
||||
optional (opt != null && opt.package != null) opt.package;
|
||||
|
||||
in {
|
||||
options = {
|
||||
programs.musicutil = {
|
||||
|
@ -29,7 +26,7 @@ in {
|
|||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
home.packages = optionalPackage cfg.package;
|
||||
home.packages = [cfg.package];
|
||||
|
||||
xdg.configFile."musicutil.yaml".source =
|
||||
yamlFormat.generate "musicutil-config" cfg.settings;
|
||||
|
|
Loading…
Reference in a new issue