Files
nixos-config/system/hardware.nix
T
kiskaadee 3597e035d3 refactor: transition repository to a standalone declarative workstation
- Remove headless server configuration, homelab services, and legacy host directories (`hosts/server/`, `hosts/laptop/`).
- Consolidate privileged system files into a clean `system/` directory (`core.nix`, `hardware.nix`, `desktop.nix`).
- Migrate Home Manager configuration into functional domain modules under `home/` (`desktop.nix`, `dev.nix`, `shell.nix`).
- Update `flake.nix` to expose a single `laptop` target.
- Overhaul documentation (`architecture.md`, `AGENTS.md`, `README.md`) to reflect the standalone architecture and homelab decoupling.

This refactor eliminates the multi-host maintenance tax by decoupling server infrastructure into the Core repository and simplifying workstation management around domain-driven cohesion.
2026-09-12 16:22:58 -05:00

54 lines
1.2 KiB
Nix

# 🔋 Laptop Hardware, Power & Peripheral Management
# Manages audio (PipeWire), power daemons, Bluetooth, printing, scanning, and 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 ];
};
# 🐳 Virtualisation / Docker container daemon
virtualisation.docker.enable = true;
}