mirror of
https://forge.katzen.cafe/schrottkatze/nix-configs.git
synced 2024-11-25 06:18:44 +01:00
40 lines
950 B
Nix
40 lines
950 B
Nix
{
|
|
lib,
|
|
pkgs,
|
|
...
|
|
}: {
|
|
home-manager.users.jade = {
|
|
config,
|
|
pkgs,
|
|
...
|
|
}: let
|
|
xmobarGhc = pkgs.haskellPackages.ghcWithPackages (pkgs: with pkgs; [xmobar]);
|
|
in {
|
|
home.packages = [xmobarGhc pkgs.xmonadctl];
|
|
programs.xmobar = {
|
|
enable = true;
|
|
};
|
|
home.file."xmobar.hs" = rec {
|
|
source = ../../haskell/xmobar/xmobar.hs;
|
|
target = ".config/xmobar/xmobar.hs";
|
|
onChange = ''
|
|
${xmobarGhc}/bin/ghc -threaded ${target}
|
|
${pkgs.busybox}/bin/pkill xmobar
|
|
${pkgs.haskellPackages.xmonad}/bin/xmonad --restart
|
|
'';
|
|
};
|
|
xsession.windowManager.xmonad = {
|
|
enable = true;
|
|
enableContribAndExtras = true;
|
|
config = ../../haskell/xmonad/xmonad.hs;
|
|
};
|
|
home.file.wallpaper = {
|
|
target = "Pictures/wallpaper.jpg";
|
|
source = ../../other/wallpaper.jpg;
|
|
onChange = ''
|
|
feh --bg-fill ~/Pictures/wallpaper.jpg;
|
|
'';
|
|
};
|
|
};
|
|
}
|