diff --git a/flake.nix b/flake.nix index 0a079cb..3c52ca7 100644 --- a/flake.nix +++ b/flake.nix @@ -35,7 +35,7 @@ email = "balajsra@umich.edu"; # Email (used for certain configurations) dotfilesDir = "~/.dotfiles"; # Absolute path of the local repo theme = "dracula"; # Selected theme from themes directory - desktop = "gnome"; # Selected window manager or desktop environment + desktop = "dwm"; # Selected window manager or desktop environment desktopType = "x11"; # x11 or wayland browser = "vivaldi"; # Default browser term = "kitty"; # Default terminal command diff --git a/system/gui/dwm.nix b/system/gui/dwm.nix index 411cf1e..0dcbc2b 100644 --- a/system/gui/dwm.nix +++ b/system/gui/dwm.nix @@ -7,6 +7,25 @@ ./x11.nix ]; + nixpkgs = { + overlays = [ + (self: super: { + dwm = super.dwm.overrideAttrs (oldattrs: { + src = fetchGit { + url = "https://gitea.sravanbalaji.com/sravan/dwm-flexipatch.git"; + rev = "23b55eaf9cd9c08d4c14f7957675ae056e358e32"; + }; + buildInputs = with pkgs; [ + xorg.libX11 + xorg.libXinerama + xorg.libXft + yajl + ]; + }); + }) + ]; + }; + services.xserver.windowManager.dwm.enable = true; services.xserver.displayManager.defaultSession = "none+dwm"; }