feat(nix/prog): add trayer for xsession
This commit is contained in:
parent
ea592c266e
commit
927ab9086a
1 changed files with 27 additions and 11 deletions
38
nix/home.nix
38
nix/home.nix
|
@ -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;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue