I’ve seen it in services.xserver.displayManager.sessionCommands
, but I’m not sure what’s the “cleanest” way to specify ~/.Xresources
.
2 Likes
I think that’s the cleanest option currently available in nixos itself — optimally with the contents specified in the config itself (so that it gets imported into the store and rolled back together with everything else), e.g.
services.xserver.displayManager.sessionCommands = ''
${pkgs.xorg.xrdb}/bin/xrdb -merge <${pkgs.writeText "Xresources" ''
Xcursor.theme: Adwaita
Xcursor.size: 64
''}
'';
or
services.xserver.displayManager.sessionCommands = ''
${pkgs.xorg.xrdb}/bin/xrdb -merge <<EOF
Xcursor.theme: Adwaita
Xcursor.size: 64
EOF
'';
Which is a matter of taste
Adding an option for structured X resources has been on my list of things to do one day for a long time, but pretty far down…
5 Likes