non-null cfg.package
This commit is contained in:
parent
2621d7ba87
commit
43fb71bcb0
|
@ -12,8 +12,8 @@ in {
|
||||||
};
|
};
|
||||||
|
|
||||||
package = mkOption {
|
package = mkOption {
|
||||||
type = types.nullOr types.package;
|
type = types.package;
|
||||||
default = null;
|
default = pkgs.musicutil;
|
||||||
};
|
};
|
||||||
|
|
||||||
settings = {
|
settings = {
|
||||||
|
@ -26,7 +26,7 @@ in {
|
||||||
};
|
};
|
||||||
|
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
home.packages = [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