From 6a1ba8f78853a5b8680f5c3ea16ea97d6a7fbd54 Mon Sep 17 00:00:00 2001 From: mehbark Date: Tue, 15 Aug 2023 12:52:48 -0400 Subject: [PATCH] xmonad :D --- build.conf.nix | 6 ++++-- configuration.nix | 6 ++++++ home.nix | 3 ++- 3 files changed, 12 insertions(+), 3 deletions(-) diff --git a/build.conf.nix b/build.conf.nix index 3b969ce..1320de9 100644 --- a/build.conf.nix +++ b/build.conf.nix @@ -1,6 +1,8 @@ with builtins; { - wm = "kde"; + wm = "xmonad"; - is-x11 = wm: elem wm ["kde" "xmonad"]; + # very, very non-exhaustive of course + is-x11 = wm: elem wm ["kde" "xmonad"]; + is-wayland = wm: elem wm ["hyprland" "sway"]; } diff --git a/configuration.nix b/configuration.nix index b324a36..1499f68 100644 --- a/configuration.nix +++ b/configuration.nix @@ -147,6 +147,12 @@ in environment.variables.SHELL = "fish"; environment.variables.TERM = "kitty"; + services.xserver.windowManager.xmonad = if conf.wm == "xmonad" + then { + enable = true; + enableContribAndExtras = true; + } else {}; + # List services that you want to enable: # Enable the OpenSSH daemon. diff --git a/home.nix b/home.nix index 288c8cd..287eb9b 100644 --- a/home.nix +++ b/home.nix @@ -28,6 +28,7 @@ in starship exa ghc + dmenu ]; programs.fish = { @@ -136,7 +137,7 @@ in main = xmonad defaultConfig { terminal = "kitty" , modMask = mod4Mask - , borderWidth = 3 + , borderWidth = 1 } ''; } else {};