{pkgs, ...}: { home.packages = let wrapped-xmobar = pkgs.symlinkJoin { name = "xmobar"; paths = with pkgs; [ # Xmobar wants ghc (haskellPackages.ghcWithPackages (self: [ self.xmobar ])) # The executable xmobar ]; }; 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}"; }; }; }