{pkgs, ...}: { home.packages = let inherit (pkgs) lib; wrapped-xmobar = pkgs.symlinkJoin { name = "xmobar"; paths = [pkgs.xmobar]; buildInputs = [pkgs.makeWrapper]; postBuild = '' wrapProgram $out/bin/xmobar \ --prefix PATH : "${lib.makeBinPath [pkgs.ghc]}" ''; }; in [ wrapped-xmobar ]; xdg.configFile = { "xmobar" = { # Xmobar uses the directory to compile too, # Linking the entire folder directly would make the directory not writable recursive = true; source = "${./xmobar}"; }; }; }