- Add packages / services to support HP printer / scanner - Add packages to dwm that polybar modules rely on
94 lines
2.0 KiB
Nix
94 lines
2.0 KiB
Nix
{ config, lib, pkgs, userSettings, ... }:
|
|
|
|
{
|
|
imports = [
|
|
./default.nix
|
|
];
|
|
|
|
services.xserver = {
|
|
enable = true;
|
|
|
|
xkb = {
|
|
layout = "us";
|
|
variant = "";
|
|
options = "";
|
|
};
|
|
|
|
windowManager.dwm = {
|
|
enable = true;
|
|
|
|
# Override dwm package with personal dwm-flexipatch config
|
|
package = (pkgs.dwm.overrideAttrs (finalAttrs: previousAttrs: {
|
|
pname = previousAttrs.pname + "-flexipatch";
|
|
version = "6.5";
|
|
src = (/home + "/${userSettings.username}" + /.config/dwm-flexipatch);
|
|
|
|
# Add dependencies for dwmipc / polybar communication patches
|
|
buildInputs = previousAttrs.buildInputs ++ (with pkgs; [
|
|
xorg.libxcb
|
|
xorg.xcbutil
|
|
yajl
|
|
jsoncpp
|
|
]);
|
|
}));
|
|
};
|
|
|
|
displayManager = {
|
|
defaultSession = "none+dwm";
|
|
lightdm.enable = true;
|
|
};
|
|
};
|
|
|
|
# Picom Compositor
|
|
services.picom.enable = true;
|
|
|
|
environment.systemPackages = with pkgs; [
|
|
# X11 Utilities
|
|
arandr
|
|
autorandr
|
|
unclutter-xfixes
|
|
|
|
# Terminal
|
|
kitty
|
|
|
|
# System Monitor
|
|
btop
|
|
qdirstat
|
|
gnome.gnome-disk-utility
|
|
|
|
# Media / Volume Controls
|
|
playerctl
|
|
pavucontrol
|
|
|
|
# Polybar Media Module Dependency
|
|
zscroll
|
|
|
|
# Notification Daemon
|
|
deadd-notification-center
|
|
|
|
# Polybar with DWM Module
|
|
(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;
|
|
};
|
|
|
|
# Extra dependencies for dwm module
|
|
buildInputs = previousAttrs.buildInputs ++ [
|
|
jsoncpp
|
|
git
|
|
libpulseaudio
|
|
];
|
|
|
|
# Remove patches applied by default polybar package
|
|
patches = [];
|
|
}))
|
|
];
|
|
}
|