diff options
author | devhell <devhell@mailfresser.de> | 2021-02-08 14:47:30 +0000 |
---|---|---|
committer | devhell <devhell@mailfresser.de> | 2021-02-08 14:50:43 +0000 |
commit | b6e19ca952d3e2877c043c45f071973430c9fb0d (patch) | |
tree | 6e02d69edebf2a111bbfaa60d6b438ada76685c5 /machines | |
parent | 8b9251bbee34d14e9be621b6c30067839d044e02 (diff) |
machines/herja: Fine-tune configuration
After some experimentation and looking at the NixOS' hardware repo, this configuration seems to work quite well. There are no major issues to worry about for now. This is also the first machine where `fwupd` is available and working.
Diffstat (limited to 'machines')
-rw-r--r-- | machines/devhell/herja.nix | 41 |
1 files changed, 17 insertions, 24 deletions
diff --git a/machines/devhell/herja.nix b/machines/devhell/herja.nix index d653a8a6..ac9acae0 100644 --- a/machines/devhell/herja.nix +++ b/machines/devhell/herja.nix @@ -19,18 +19,25 @@ kernelModules = [ "fuse" ]; }; - kernelModules = [ "kvm-amd" ]; - extraModulePackages = [ ]; + kernelModules = [ "kvm-amd" "acpi_call" ]; + kernelParams = [ "acpi_backlight=native" ]; + extraModulePackages = with config.boot.kernelPackages; [ acpi_call ]; }; hardware = { cpu.amd.updateMicrocode = true; + enableRedistributableFirmware = true; + trackpoint = { + enable = true; + emulateWheel = true; + }; opengl = { enable = true; extraPackages = [ pkgs.libvdpau-va-gl pkgs.vaapiVdpau pkgs.amdvlk ]; }; }; + fileSystems."/" = { device = "/dev/disk/by-uuid/34c21c91-6722-427d-882b-6da0e2f57f50"; fsType = "btrfs"; @@ -110,26 +117,9 @@ }; }; -# services.actkbd = { -# enable = true; -# bindings = [ -# { keys = [ 224 ]; events = [ "key" ]; command = "${pkgs.light}/bin/light -U 5"; } -# { keys = [ 225 ]; events = [ "key" ]; command = "${pkgs.light}/bin/light -A 5"; } -# ]; -# }; - - services.acpid = { - enable = true; -# lidEventCommands = '' -# LID="/proc/acpi/button/lid/LID/state" -# state=`cat $LID | ${pkgs.gawk}/bin/awk '{print $2}'` -# case "$state" in -# *open*) ;; -# *close*) systemctl suspend ;; -# *) logger -t lid-handler "Failed to detect lid state ($state)" ;; -# esac -# ''; - }; + services.tlp.enable = true; + services.illum.enable = true; + services.fwupd.enable = true; services.xserver = { enable = true; @@ -138,8 +128,10 @@ libinput = { enable = true; - disableWhileTyping = true; - middleEmulation = true; + touchpad = { + disableWhileTyping = true; + middleEmulation = true; + }; }; # synaptics = { # enable = true; @@ -181,6 +173,7 @@ environment.systemPackages = with pkgs; [ aircrackng + fwupd horst ipmitool iw |