mirror of
https://forge.katzen.cafe/schrottkatze/nix-configs.git
synced 2024-11-25 14:28:44 +01:00
28 lines
525 B
Nix
28 lines
525 B
Nix
|
{
|
||
|
lib,
|
||
|
pkgs,
|
||
|
...
|
||
|
}: let
|
||
|
xmobarGhc = pkgs.haskellPackages.ghcWithPackages (pkgs:
|
||
|
with pkgs; [
|
||
|
xmobar
|
||
|
statgrab
|
||
|
]);
|
||
|
in {
|
||
|
home = {
|
||
|
packages = [xmobarGhc];
|
||
|
file."xmobar.hs" = rec {
|
||
|
source = ./xmobar.hs;
|
||
|
target = ".config/xmobar/xmobar.hs";
|
||
|
onChange = ''
|
||
|
${xmobarGhc}/bin/ghc -threaded ${target}
|
||
|
${pkgs.busybox}/bin/pkill xmobar
|
||
|
${pkgs.haskellPackages.xmonad}/bin/xmonad --restart
|
||
|
'';
|
||
|
};
|
||
|
};
|
||
|
programs.xmobar = {
|
||
|
enable = true;
|
||
|
};
|
||
|
}
|