Files
nixos-config/system/gui/dwm.nix
Sravan Balaji b2ecd969fd Fix Disko Config for Current System and Fix dwm polybar override
- Restore luks-btrfs-subvolumes.nix to old subvolume / swap size
- Make a copy of modified luks-btrfs-subvolumes.nix for future use
- Disable the polybar patch step which doesn't work
- Add git as a build input for polybar-dwm-module
2024-03-30 16:38:59 -04:00

68 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
git
];
patches = [];
}))
];
}