.files/nix/configurations/vanadium/home/xmobar.nix

26 lines
563 B
Nix

{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}";
};
};
}