diff options
author | Simon Parri <simonparri@ganzeria.com> | 2025-05-09 17:54:45 -0500 |
---|---|---|
committer | Simon Parri <simonparri@ganzeria.com> | 2025-05-09 17:54:45 -0500 |
commit | 4ea08b3976188eb01a74548d68b227a7794b4caa (patch) | |
tree | 505c0df98ed00ed592be15895b8ed3eb7aa9e2c3 /modules/laptop.nix | |
download | nixos-config-4ea08b3976188eb01a74548d68b227a7794b4caa.tar.gz nixos-config-4ea08b3976188eb01a74548d68b227a7794b4caa.zip |
Add current configuration
Diffstat (limited to 'modules/laptop.nix')
-rw-r--r-- | modules/laptop.nix | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/modules/laptop.nix b/modules/laptop.nix new file mode 100644 index 0000000..28d0708 --- /dev/null +++ b/modules/laptop.nix @@ -0,0 +1,16 @@ +{ lib, config, pkgs, ... }: + +{ + options = { + this.laptop.enable = lib.mkEnableOption "laptop settings"; + }; + + config = lib.mkIf config.this.laptop.enable { + powerManagement.enable = true; + powerManagement.powertop.enable = true; + services.tlp.enable = true; + environment.systemPackages = with pkgs; [ + acpi + ]; + }; +} |