From 834f19223d817258108ad780a1bde2058ab3ee17 Mon Sep 17 00:00:00 2001 From: Baitinq Date: Mon, 4 Jul 2022 11:48:31 +0200 Subject: Switch windowmanager to xmonad --- hosts/home.nix | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) (limited to 'hosts/home.nix') diff --git a/hosts/home.nix b/hosts/home.nix index c1df4c6..568f426 100644 --- a/hosts/home.nix +++ b/hosts/home.nix @@ -1,4 +1,4 @@ -{ config, lib, pkgs, inputs, user, hostname, secrets, ... }: +{ config, lib, pkgs, inputs, user, hostname, secrets, location, ... }: let dotfiles = ../dotfiles; in @@ -17,7 +17,7 @@ in discord mpv sxiv - dwm + #dwm st dmenu unclutter @@ -41,6 +41,22 @@ in ]); }; + xsession.windowManager.xmonad = { + enable = true; + enableContribAndExtras = true; + #extraPackages = pkgs: [pkgs.xmonadctl]; + config = dotfiles + "/xmonad.hs"; + }; + + programs.xmobar = { + enable = true; + extraConfig = builtins.readFile (dotfiles + "/xmobar.hs"); + }; + + home.sessionVariables = { + LOCATION = "${location}"; + }; + services = { gpg-agent = { enable = true; -- cgit 1.4.1