diff options
Diffstat (limited to 'machines/magician/configuration.nix')
| -rw-r--r-- | machines/magician/configuration.nix | 28 |
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. |
