HP Printer & Scanner + DWM/Polybar Dependencies

- Add packages / services to support HP printer / scanner
- Add packages to dwm that polybar modules rely on
This commit is contained in:
Sravan Balaji
2024-03-31 09:06:52 -04:00
parent 79ae89cf80
commit aef313b4f1
2 changed files with 36 additions and 0 deletions

View File

@ -17,11 +17,13 @@
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
@ -37,14 +39,34 @@
};
};
# 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";
@ -57,12 +79,14 @@
fetchSubmodules = true;
};
# Extra dependencies for dwm module
buildInputs = previousAttrs.buildInputs ++ [
jsoncpp
git
libpulseaudio
];
# Remove patches applied by default polybar package
patches = [];
}))
];

View File

@ -1,8 +1,20 @@
{ config, lib, pkgs, ... }:
{
# Printing
services.printing.enable = true;
services.avahi.enable = true;
services.avahi.nssmdns4 = true;
services.avahi.openFirewall = true;
# Scanning
services.saned.enable = true;
environment.systemPackages = with pkgs; [
# HP Printer Drivers
hplip
# Scanner Frontend
libsForQt5.skanlite
];
}