1
0
Fork 0

Build xmonad with home-manager

master
dump_stack() 2022-12-17 17:49:44 +00:00
parent 50f86d54af
commit 35271fd122
Signed by: dump_stack
GPG Key ID: BE44DA8C062D87DC
2 changed files with 7 additions and 6 deletions

View File

@ -13,10 +13,6 @@ in {
enable = true;
layout = "us,ru"; # see also home-manager.nix
xkbOptions = "ctrl:nocaps,grp:rctrl_toggle"; # see also home-manager.nix
windowManager.xmonad = {
enable = true;
enableContribAndExtras = true;
};
dpi = 282; # 15.6 inch, 3840x2160, comment out in case of nvidia
};

View File

@ -128,7 +128,6 @@ in {
home.file = {
".emacs.d/init.el".source = ./etc/emacs.el;
".xmonad/xmonad.hs".source = ./etc/xmonad.hs;
".mutt/mailcap".source = ./etc/mutt/mailcap;
".mutt/muttrc".source = ./etc/mutt/muttrc;
@ -149,7 +148,13 @@ in {
xsession = {
enable = true;
windowManager.command = "exec xmonad";
windowManager.xmonad = {
enable = true;
config = pkgs.writeText "xmonad.hs" (builtins.readFile ./etc/xmonad.hs);
extraPackages = haskellPackages: [
haskellPackages.xmonad-contrib
];
};
initExtra = ''
touchpad=$(xinput | grep -o 'Synaptics.*id=[0-9]*' | cut -d '=' -f 2)
trackpoint=$(xinput | grep -o 'TrackPoint.*id=[0-9]*' | cut -d '=' -f 2)