Mirror of the laptop preset for the desktop form factor. New
`nomarchy.system.desktop.enable` defaults to `formFactor == "desktop"`,
so the installer's existing formFactor write auto-flips it on without
installer changes (same pattern as laptop).
The module pins `powerManagement.cpuFreqGovernor` to `"performance"`
(via mkDefault) and enables `services.zfs.{autoScrub,trim}` so a
future ZFS pool gets sensible maintenance for free. The ZFS knobs are
no-ops until the user adds zfs to `boot.supportedFilesystems`.
Battery widget filtering is already driven by `formFactor` itself in
`features/desktop/waybar/default.nix`, so the preset doesn't repeat
it. Closes the "Desktop preset module" Next item.
16 lines
420 B
Nix
16 lines
420 B
Nix
{ config, lib, ... }:
|
|
|
|
let
|
|
cfg = config.nomarchy.system.desktop;
|
|
in
|
|
{
|
|
config = lib.mkIf cfg.enable {
|
|
powerManagement.cpuFreqGovernor = lib.mkDefault "performance";
|
|
|
|
# No-op until the user adds ZFS to boot.supportedFilesystems and a pool;
|
|
# then maintenance kicks in without further config.
|
|
services.zfs.autoScrub.enable = lib.mkDefault true;
|
|
services.zfs.trim.enable = lib.mkDefault true;
|
|
};
|
|
}
|