nixos-config/configs/nixos/ni/modules/hardware/qol.nix

26 lines
592 B
Nix
Raw Normal View History

# Some quality-of-life features for your hardware.
{ config, lib, pkgs, ... }:
let
hostCfg = config.hosts.ni;
cfg = hostCfg.hardware.qol;
2025-01-29 04:48:19 +00:00
in {
2023-12-15 05:27:12 +00:00
options.hosts.ni.hardware.qol.enable =
lib.mkEnableOption "quality-of-life hardware features";
config = lib.mkIf cfg.enable {
# Bring in some of them good tools.
suites.filesystem.tools.enable = true;
# Set up printers.
services.printing = {
enable = true;
browsing = true;
2025-01-29 04:48:19 +00:00
drivers = with pkgs; [ gutenprint splix ];
};
# Extend the life of an SSD.
services.fstrim.enable = true;
};
}