Files
Nomarchy/core/system/default.nix
Bernardo Magri 034da701a3 feat(system): add laptop power preset module
New `nomarchy.system.laptop.{enable,thermald}` options. `enable`
defaults to `formFactor == "laptop"`, so the installer's existing
formFactor write auto-flips the preset on without installer changes.

The module wires TLP (governors + 75/80 charge thresholds),
force-disables power-profiles-daemon (mutually exclusive with TLP),
enables upower and thermald (x86_64), adds the brightnessctl udev
rule so the existing brightness scripts work without root, and sets
a logind lid-switch policy that resolves to suspend-then-hibernate
when `hibernation.enable` is on, plain suspend otherwise.

Closes the "Form-factor → laptop preset auto-enable" Now item and
the "Laptop preset module" Next item from docs/ROADMAP.md in one
change.
2026-04-26 08:31:19 +01:00

35 lines
681 B
Nix

{ config, lib, pkgs, ... }:
{
imports = [
./options.nix
./state.nix
./branding.nix
./graphics.nix
./nix.nix
./scripts.nix
./systemd.nix
./virtualization.nix
./fonts.nix
./hardware.nix
./audio.nix
./bluetooth.nix
./network.nix
./impermanence.nix
./browser.nix
# Tier 1 system features (all opt-in via nomarchy.system.*).
./snapper.nix
./laptop.nix
./hibernate.nix
./containers.nix
./pam.nix
./input-method.nix
../../themes/engine/plymouth.nix
../../themes/engine/sddm.nix
];
time.timeZone = lib.mkDefault config.nomarchy.system.timezone;
nixpkgs.config.allowUnfree = true;
}