mirror of
https://codeberg.org/leana8959/.files.git
synced 2025-12-06 06:39:14 +00:00
26 lines
597 B
Nix
26 lines
597 B
Nix
{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}";
|
|
};
|
|
};
|
|
}
|