about summary refs log tree commit diff
diff options
context:
space:
mode:
authorVincent Ambo <mail@tazj.in>2020-06-11T17·28+0100
committerVincent Ambo <mail@tazj.in>2020-06-11T17·28+0100
commit9ed7f13ab99dda722bb43d86fdcec71324c3664f (patch)
tree09b9c82a95a951990b935193c76e833a5bcb3bb3
parentccd63aae8d1dc525ae5ccba17da016201a3741b8 (diff)
feat(nixos/frog): Enable settings required for hardware support r/892
... also updates to the latest kernel (this is 5.4 -> 5.6 atm)
-rw-r--r--ops/nixos/frog/default.nix9
1 files changed, 7 insertions, 2 deletions
diff --git a/ops/nixos/frog/default.nix b/ops/nixos/frog/default.nix
index cd2e1d6d1786..648e3549b610 100644
--- a/ops/nixos/frog/default.nix
+++ b/ops/nixos/frog/default.nix
@@ -31,14 +31,21 @@ in depot.lib.fix(self: {
       kernelModules = [ "dm-snapshot" ];
     };
 
+    kernelPackages = nixpkgs.linuxPackages_latest;
     kernel.sysctl = {
       "kernel.perf_event_paranoid" = 1;
     };
   };
 
   hardware = {
+    cpu.amd.updateMicrocode = true;
+    enableRedistributableFirmware = true;
     pulseaudio.enable = true;
     u2f.enable = true;
+    opengl = {
+      enable = true;
+      driSupport = true;
+    };
   };
 
   nix = {
@@ -138,8 +145,6 @@ in depot.lib.fix(self: {
     layout = "us";
     xkbOptions = "caps:super";
     exportConfiguration = true;
-    videoDrivers = [ "amdgpu" "amdgpu-pro" ];
-
     displayManager = {
       # Give EXWM permission to control the session.
       sessionCommands = "${nixpkgs.xorg.xhost}/bin/xhost +SI:localuser:$USER";