feat(nix/prog): add trayer for xsession

This commit is contained in:
Dmitriy Pleshevskiy 2022-04-07 14:13:44 +03:00
parent ea592c266e
commit 927ab9086a

View file

@ -16,6 +16,8 @@ in
})
];
targets.genericLinux.enable = true;
# Home Manager needs a bit of information about you and the
# paths it should manage.
home.username = secrets.home.name;
@ -56,6 +58,31 @@ in
EDITOR = "nvim";
};
xsession = {
enable = true;
windowManager.xmonad = {
enable = true;
enableContribAndExtras = true;
};
};
services.trayer = {
enable = true;
settings = {
SetDockType = true;
SetPartialStrut = true;
expand = true;
transparent = true;
alpha = 50;
edge = "top";
align = "right";
width = 4;
height = 24;
tint = "0x5f5f5f";
};
};
# Let Home Manager install and manage itself.
programs.home-manager.enable = true;
@ -131,16 +158,5 @@ in
# "xmobar/xmobar.hs".source = ../programs/xmonad/xmobar.hs;
};
xsession = {
enable = true;
profileExtra = ''
systemctl --user restart setxkbmap.service
'';
windowManager.xmonad = {
enable = true;
enableContribAndExtras = true;
};
};
}