mirror of
https://github.com/nix-community/home-manager
synced 2024-11-23 05:03:09 +00:00
mako: add onChange configuration reload
This commit is contained in:
parent
ad05443e04
commit
8f1d8c2ef1
1 changed files with 33 additions and 28 deletions
|
@ -297,7 +297,11 @@ in {
|
|||
|
||||
home.packages = [ pkgs.mako ];
|
||||
|
||||
xdg.configFile."mako/config".text = ''
|
||||
xdg.configFile."mako/config" = {
|
||||
onChange = ''
|
||||
${pkgs.mako}/bin/makoctl reload || true
|
||||
'';
|
||||
text = ''
|
||||
${optionalInteger "max-visible" cfg.maxVisible}
|
||||
${optionalString "sort" cfg.sort}
|
||||
${optionalString "output" cfg.output}
|
||||
|
@ -328,4 +332,5 @@ in {
|
|||
${cfg.extraConfig}
|
||||
'';
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue