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