- Update flake.lock - Switch from awesome back to dwm - Attempt to modify existing polybar nix package to point to mihirlad55's polybar-dwm-module
65 lines
1.3 KiB
Nix
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
|
|
];
|
|
}))
|
|
];
|
|
}
|