From 4d3a6c4f2067ea3c7b922c17e84b459608ee71dc Mon Sep 17 00:00:00 2001 From: Infinidoge Date: Sun, 26 Sep 2021 22:33:05 -0400 Subject: [PATCH] refactor: laptop hardware settings --- hosts/Infini-SWIFT/default.nix | 13 ++++++------- profiles/hardware/laptop.nix | 8 ++++++++ 2 files changed, 14 insertions(+), 7 deletions(-) create mode 100644 profiles/hardware/laptop.nix diff --git a/hosts/Infini-SWIFT/default.nix b/hosts/Infini-SWIFT/default.nix index cb635b4..1d4c155 100644 --- a/hosts/Infini-SWIFT/default.nix +++ b/hosts/Infini-SWIFT/default.nix @@ -7,17 +7,16 @@ boot.grub networking.wireless - hardware.sound - hardware.amdgpu + + (with hardware; [ + sound + amdgpu + laptop + ]) # peripherals.printing ]; }; - services.xserver.libinput = { - enable = true; - touchpad.naturalScrolling = true; - }; - system.stateVersion = "21.11"; networking.interfaces.wlan0.useDHCP = true; diff --git a/profiles/hardware/laptop.nix b/profiles/hardware/laptop.nix new file mode 100644 index 0000000..d5d5ae4 --- /dev/null +++ b/profiles/hardware/laptop.nix @@ -0,0 +1,8 @@ +{ ... }: { + services.xserver.libinput = { + enable = true; + touchpad.naturalScrolling = true; + }; + + environment.variables.LAPTOP = "True"; +}