mirror of
https://git.sr.ht/~magic_rb/dotfiles
synced 2024-11-30 03:56:12 +01:00
c1684d5203
Signed-off-by: magic_rb <magic_rb@redalder.org>
62 lines
1.6 KiB
Nix
62 lines
1.6 KiB
Nix
{
|
|
pkgs,
|
|
lib,
|
|
inputs',
|
|
...
|
|
}: {
|
|
home.file.".xmonad/build".executable = true;
|
|
home.file.".xmonad/build".text = ''
|
|
#!/usr/bin/env bash
|
|
cd ~/dotfiles/home-manager/modules/xmonad
|
|
eval "$(direnv export bash)"
|
|
stack build
|
|
rm "$1"
|
|
cp "$(stack path --local-install-root)/bin/xmonad-exe" "$1"
|
|
'';
|
|
|
|
home.file.".xmonad/buildenv".source = pkgs.buildEnv {
|
|
name = "xmonad-buildenv";
|
|
ignoreCollisions = true;
|
|
paths = inputs'.self.devShells.${pkgs.stdenv.system}.default.nativeBuildInputs;
|
|
};
|
|
|
|
home.file.".xmonad/runenv".source = let
|
|
polybar-mm =
|
|
pkgs.writeShellScriptBin "polybar-mm"
|
|
(builtins.readFile ./scripts/polybar-mm.sh);
|
|
reload =
|
|
pkgs.writeShellScriptBin "xmonad-reload"
|
|
(builtins.readFile ./scripts/polybar-mm.sh);
|
|
toggle-touchpad =
|
|
pkgs.writeShellScriptBin "toggle-touchpad"
|
|
(builtins.readFile ./scripts/toggle-touchpad.sh);
|
|
auxmenu =
|
|
pkgs.writeShellScriptBin "auxmenu"
|
|
(builtins.readFile ./scripts/auxmenu.sh);
|
|
passmenu =
|
|
pkgs.writeShellScriptBin "emacs-passmenu"
|
|
(builtins.readFile ./scripts/passmenu.sh);
|
|
emacs-vterm =
|
|
pkgs.writeShellScriptBin "emacs-vterm"
|
|
(builtins.readFile ./scripts/emacs-vterm.sh);
|
|
in
|
|
pkgs.buildEnv {
|
|
name = "xmonad-runenv";
|
|
paths = with pkgs; [
|
|
brightnessctl
|
|
playerctl
|
|
dmenu
|
|
polybar-mm
|
|
polybarFull
|
|
reload
|
|
toggle-touchpad
|
|
auxmenu
|
|
passmenu
|
|
wirelesstools
|
|
emacs-vterm
|
|
libnotify
|
|
x11_ssh_askpass
|
|
];
|
|
};
|
|
}
|