danth / stylix

System-wide colorscheming and typography for NixOS
https://stylix.danth.me/
MIT License
1.09k stars 133 forks source link

sway: stylix will not set wallpaper if sway configuration directory is imported #215

Open pfitzn opened 8 months ago

pfitzn commented 8 months ago

When a legacy swaywm configuration is imported by home-manager via

     source = ../sway/.config/sway;
     recursive = true;
   };

the option output."*".bg = "${config.stylix.image} fill"; does not properly get merged into it. Stylix detects the picture and properly themes all applications, but the desktop wallpaper will not change.

If the configuration directory import block is removed, Stylix does set the background image properly.

danth commented 8 months ago

The first line of your example seems to be missing. Is this using home.file, or something under wayland.windowManager.sway?

In the first case I don't think there's much we can do, since you would be replacing the file which Home Manager usually generates.