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:
parent
ccd63aae8d
commit
9ed7f13ab9
1 changed files with 7 additions and 2 deletions
|
@ -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";
|
||||
|
|
Loading…
Reference in a new issue