1
0
Fork 0
mirror of https://github.com/nix-community/home-manager.git synced 2025-12-05 16:41:04 +01:00

astroid: only generate poll.sh when script provided

Don't need to generate the file if the user hasn't configured script.
This commit is contained in:
Austin Horstman 2025-03-30 13:18:25 -05:00
parent a99c12d23e
commit fcdd04e0f9

View file

@ -118,7 +118,7 @@ in {
xdg.configFile."astroid/config".source =
jsonFormat.generate "astroid-config" finalConfig;
xdg.configFile."astroid/poll.sh" = {
xdg.configFile."astroid/poll.sh" = lib.mkIf (cfg.pollScript != "") {
executable = true;
text = ''
# Generated by Home Manager