setup xsession

This commit is contained in:
♥ Minnie ♥ 2023-04-25 08:02:59 +08:00
parent 9b82d8241e
commit 10f2d6ed35

33
home-manager/xsession.nix Normal file
View file

@ -0,0 +1,33 @@
{ inputs, outputs, lib, config, pkgs, ... }:
{
imports = [
./services/picom.nix
];
home.packages = with pkgs; [
dmenu
feh
wezterm
candybar
];
xsession = {
enable = true;
scriptPath = ".xsession-hm";
windowManager.xmonad = {
enable = true;
enableContribAndExtras = true;
# extraPackages = haskellPackages: with haskellPackages; [ ];
config = ../config/xmonad/xmonad.hs;
};
initExtra = ''
xrandr --output HDMI-A-0 --mode 1920x1080 --output DisplayPort-0 --mode 2560x1440 --right-of HDMI-A-0
feh --bg-scale ~/dotfiles.nix/assets/chinatown.png
'';
};
xdg.configFile = {
wezterm = { source = ../config/wezterm; recursive = true; };
};
}