summaryrefslogtreecommitdiff
path: root/machines/magician/configuration.nix
diff options
context:
space:
mode:
authorAlexander Kassouni <alex@kassouni.net>2026-08-29 23:53:40 -0700
committerAlexander Kassouni <alex@kassouni.net>2026-08-29 23:53:40 -0700
commitaf99b4960a9bf1043234354d685ed23818c14aaa (patch)
tree9d6bd855c76c2c99e16321e1df4eeaadade28739 /machines/magician/configuration.nix
parent8dcf355819cc6cd1e87924218c1adcd900ecda84 (diff)
new laptop
Diffstat (limited to 'machines/magician/configuration.nix')
-rw-r--r--machines/magician/configuration.nix28
1 files changed, 26 insertions, 2 deletions
diff --git a/machines/magician/configuration.nix b/machines/magician/configuration.nix
index 01734eb..6f085c5 100644
--- a/machines/magician/configuration.nix
+++ b/machines/magician/configuration.nix
@@ -7,6 +7,24 @@
services.upower.enable = true;
+ swapDevices = [{
+ device = "/var/lib/swapfile";
+ size = 16*1024; # 16 GB
+ }];
+
+ services.tlp = {
+ enable = true;
+ settings = {
+ CPU_SCALING_GOVERNOR_ON_AC = "performance";
+ CPU_SCALING_GOVERNOR_ON_BAT = "powersave";
+ };
+ };
+
+ hardware.bluetooth = {
+ enable = true;
+ powerOnBoot = true;
+ };
+
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
@@ -21,11 +39,17 @@
xrandr --output eDP-1 --mode 2880x1920 --rate 120.00
'';
- services.xserver.dpi = 192;
+ services.xserver.dpi = 168;
networking.hostName = "magician";
- services.libinput.enable = true;
+ services.libinput = {
+ enable = true;
+ mouse.tapping = false;
+ # No bottom-right corner right-click; use two-finger click instead.
+ touchpad.clickMethod = "clickfinger";
+ touchpad.naturalScrolling = true;
+ };
# This option defines the first version of NixOS you have installed on this particular machine,
# and is used to maintain compatibility with application data (e.g. databases) created on older NixOS versions.