From 699b94d95f7b85c164ea2c571e293df1e9b7e593 Mon Sep 17 00:00:00 2001 From: Ivan Malison Date: Sun, 29 Nov 2020 17:38:27 -0800 Subject: [PATCH] [NixOS] Razer tweaks --- nixos/machines/ivanm-dfinity-razer.nix | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/nixos/machines/ivanm-dfinity-razer.nix b/nixos/machines/ivanm-dfinity-razer.nix index 0a251823..80f0c113 100644 --- a/nixos/machines/ivanm-dfinity-razer.nix +++ b/nixos/machines/ivanm-dfinity-razer.nix @@ -12,11 +12,6 @@ /etc/nixos/cachix.nix ]; - hardware.bumblebee = { - enable = true; - pmMethod = "bbswitch"; - }; - # disable card with bbswitch by default since we turn it on only on demand! hardware.nvidiaOptimus.disable = true; @@ -32,8 +27,6 @@ boot.loader.efi.canTouchEfiVariables = true; services.xserver.libinput.enable = true; - services.tlp.enable = true; - services.acpid.enable = false; fileSystems."/" = { device = "/dev/disk/by-uuid/58218a04-3ba1-4295-86bb-ada59f75e3b6"; @@ -59,7 +52,13 @@ serviceConfig.Type = "oneshot"; }; - swapDevices = [ ]; + swapDevices = [ + { + device = "/swapfile"; + priority = 0; + size = 4096; + } + ]; networking.hostName = "ivanm-dfinity-razer";