From 927ab9086a01507358b3acae9ff6265a13620d80 Mon Sep 17 00:00:00 2001 From: Dmitriy Pleshevskiy Date: Thu, 7 Apr 2022 14:13:44 +0300 Subject: [PATCH] feat(nix/prog): add trayer for xsession --- nix/home.nix | 38 +++++++++++++++++++++++++++----------- 1 file changed, 27 insertions(+), 11 deletions(-) diff --git a/nix/home.nix b/nix/home.nix index 3bdf061..be54ec2 100644 --- a/nix/home.nix +++ b/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; - }; - }; }