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