- Override pkgs.epsonscan2 with withNonFreePlugins = true in hardware.sane.extraBackends to provide closed-source network scanning transport for Epson EcoTank / L-series. - Add pkgs.sane-airscan to enable standard eSCL and WSD driverless discovery in SANE frontends. - Resolves network connection timeout and communication error loops over LAN/Wi-Fi.
59 lines
1.3 KiB
Nix
59 lines
1.3 KiB
Nix
# 🔋 Machine Services, Hardware & Peripherals
|
|
# Manages audio (PipeWire), power daemons, Bluetooth, printing, scanning, and container virtualization.
|
|
|
|
{ pkgs, ... }:
|
|
|
|
{
|
|
# Sound daemon configuration (PipeWire backend with PulseAudio emulation)
|
|
services.pipewire = {
|
|
enable = true;
|
|
pulse.enable = true;
|
|
};
|
|
|
|
# 🔋 Laptop Power & Battery Management
|
|
services.power-profiles-daemon.enable = true;
|
|
services.upower.enable = true;
|
|
|
|
# Backlight brightness control utility
|
|
environment.systemPackages = with pkgs; [
|
|
brightnessctl
|
|
];
|
|
|
|
# 📶 Bluetooth Configuration
|
|
hardware.bluetooth = {
|
|
enable = true;
|
|
powerOnBoot = true;
|
|
};
|
|
services.blueman.enable = true;
|
|
|
|
# 🖨️ Printing & Scanning (Epson drivers & Avahi network discovery)
|
|
services.printing = {
|
|
enable = true;
|
|
drivers = with pkgs; [
|
|
epson-escpr
|
|
epson-escpr2
|
|
gutenprint
|
|
gutenprintBin
|
|
];
|
|
};
|
|
|
|
services.avahi = {
|
|
enable = true;
|
|
nssmdns4 = true;
|
|
openFirewall = true;
|
|
};
|
|
|
|
hardware.sane = {
|
|
enable = true;
|
|
extraBackends = [
|
|
(pkgs.epsonscan2.override {
|
|
withNonFreePlugins = true;
|
|
})
|
|
pkgs.sane-airscan
|
|
];
|
|
};
|
|
|
|
# 🐳 Virtualisation / Docker container daemon
|
|
virtualisation.docker.enable = true;
|
|
}
|