nixos-config/configs/nixos/ni/modules/hardware/qol.nix
Gabriel Arazas 9b7cc8a850
modules: move profiles custom namespace to suites
We now have a "proper" profiles modules ala-nixpkgs so we'll have to move
these to make it less confusing.
2024-01-22 14:48:55 +08:00

38 lines
862 B
Nix

# Some quality-of-life features for your hardware.
{ config, lib, pkgs, ... }:
let
hostCfg = config.hosts.ni;
cfg = hostCfg.hardware.qol;
in
{
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;
# We're using some better filesystems so we're using it.
boot.initrd.supportedFilesystems = [ "btrfs" ];
boot.supportedFilesystems = [ "btrfs" ];
# Set up printers.
services.printing = {
enable = true;
browsing = true;
drivers = with pkgs; [
gutenprint
hplip
splix
];
};
# Make your CPU more useful.
services.auto-cpufreq.enable = true;
# Extend the life of an SSD.
services.fstrim.enable = true;
};
}