Files
nixos-config/system/gui/dwm.nix
Sravan Balaji aa28eb8e3d First attempt at adding polybar-dwm-module (fails to build)
- Update flake.lock
- Switch from awesome back to dwm
- Attempt to modify existing polybar nix package
  to point to mihirlad55's polybar-dwm-module
2024-03-30 16:18:41 -04:00

65 lines
1.3 KiB
Nix

{ config, lib, pkgs, userSettings, ... }:
{
imports = [
./default.nix
];
services.xserver = {
enable = true;
xkb = {
layout = "us";
variant = "";
options = "";
};
windowManager.dwm = {
enable = true;
package = pkgs.dwm.overrideAttrs {
src = (/home + "/${userSettings.username}" + /.config/dwm-flexipatch);
buildInputs = with pkgs; [
xorg.libX11.dev
xorg.libXinerama
xorg.libXft
xorg.libxcb
xorg.xcbutil
yajl
jsoncpp
];
};
};
displayManager = {
defaultSession = "none+dwm";
lightdm.enable = true;
};
};
services.picom.enable = true;
environment.systemPackages = with pkgs; [
arandr
autorandr
unclutter-xfixes
(polybar.overrideAttrs (finalAttrs: previousAttrs: {
pname = previousAttrs.pname + "-dwm-module";
version = "3.5.2";
src = fetchFromGitHub {
owner = "mihirlad55";
repo = "polybar-dwm-module";
rev = "0c3e139ac54e081c06ef60548927e679d80d4297";
hash = "sha256-ZL7yDGGiZFGgVXZXS+d3xUDhOOd5lp2mo2ipFN92mIY=";
fetchSubmodules = true;
};
buildInputs = previousAttrs.buildInputs ++ [
jsoncpp
];
}))
];
}