feat(nixos/frog): Enable settings required for hardware support

... also updates to the latest kernel (this is 5.4 -> 5.6 atm)
This commit is contained in:
Vincent Ambo 2020-06-11 18:28:17 +01:00
parent ccd63aae8d
commit 9ed7f13ab9

View file

@ -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";