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 {};