mirror of
https://github.com/alyraffauf/nixcfg.git
synced 2024-11-22 14:23:55 -05:00
parent
550afb4fe9
commit
978431f9e2
|
@ -37,10 +37,7 @@
|
||||||
|
|
||||||
# Save power/better manage heat & fans.
|
# Save power/better manage heat & fans.
|
||||||
powerManagement.powertop.enable = true;
|
powerManagement.powertop.enable = true;
|
||||||
services = {
|
services.thermald.enable = true;
|
||||||
btrfs.autoScrub.enable = true;
|
|
||||||
thermald.enable = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking
|
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking
|
||||||
# (the default) this is the recommended approach. When using systemd-networkd it's
|
# (the default) this is the recommended approach. When using systemd-networkd it's
|
||||||
|
|
|
@ -17,7 +17,7 @@
|
||||||
boot.initrd.availableKernelModules = ["nvme" "xhci_pci" "thunderbolt" "usb_storage" "sd_mod"];
|
boot.initrd.availableKernelModules = ["nvme" "xhci_pci" "thunderbolt" "usb_storage" "sd_mod"];
|
||||||
boot.initrd.kernelModules = [];
|
boot.initrd.kernelModules = [];
|
||||||
boot.kernelModules = ["kvm-amd" "amd-gpu"];
|
boot.kernelModules = ["kvm-amd" "amd-gpu"];
|
||||||
boot.kernelParams = ["amdgpu.abmlevel=0"]; # Disable AMD display management.
|
boot.kernelParams = ["amdgpu.abmlevel=0"];
|
||||||
boot.extraModulePackages = [];
|
boot.extraModulePackages = [];
|
||||||
|
|
||||||
hardware.opengl = {
|
hardware.opengl = {
|
||||||
|
@ -30,10 +30,7 @@
|
||||||
extraPackages32 = [pkgs.driversi686Linux.amdvlk];
|
extraPackages32 = [pkgs.driversi686Linux.amdvlk];
|
||||||
};
|
};
|
||||||
|
|
||||||
services = {
|
services.xserver.videoDrivers = ["amdgpu"];
|
||||||
btrfs.autoScrub.enable = true;
|
|
||||||
xserver.videoDrivers = ["amdgpu"];
|
|
||||||
};
|
|
||||||
|
|
||||||
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking
|
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking
|
||||||
# (the default) this is the recommended approach. When using systemd-networkd it's
|
# (the default) this is the recommended approach. When using systemd-networkd it's
|
||||||
|
|
|
@ -21,8 +21,6 @@
|
||||||
|
|
||||||
hardware.opengl.driSupport = true;
|
hardware.opengl.driSupport = true;
|
||||||
|
|
||||||
services.btrfs.autoScrub.enable = true;
|
|
||||||
|
|
||||||
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking
|
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking
|
||||||
# (the default) this is the recommended approach. When using systemd-networkd it's
|
# (the default) this is the recommended approach. When using systemd-networkd it's
|
||||||
# still possible to use this option, but it's recommended to use it in conjunction
|
# still possible to use this option, but it's recommended to use it in conjunction
|
||||||
|
|
|
@ -41,11 +41,7 @@
|
||||||
|
|
||||||
# Save power/better manage heat & fans.
|
# Save power/better manage heat & fans.
|
||||||
powerManagement.powertop.enable = true;
|
powerManagement.powertop.enable = true;
|
||||||
|
services.thermald.enable = true;
|
||||||
services = {
|
|
||||||
btrfs.autoScrub.enable = true;
|
|
||||||
thermald.enable = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking
|
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking
|
||||||
# (the default) this is the recommended approach. When using systemd-networkd it's
|
# (the default) this is the recommended approach. When using systemd-networkd it's
|
||||||
|
|
|
@ -30,8 +30,6 @@
|
||||||
# Otherwise, CPU doesn't automatically clock down.
|
# Otherwise, CPU doesn't automatically clock down.
|
||||||
powerManagement.cpuFreqGovernor = "ondemand";
|
powerManagement.cpuFreqGovernor = "ondemand";
|
||||||
|
|
||||||
services.btrfs.autoScrub.enable = true;
|
|
||||||
|
|
||||||
# Intel drivers with accelerated video playback support.
|
# Intel drivers with accelerated video playback support.
|
||||||
nixpkgs.config.packageOverrides = pkgs: {
|
nixpkgs.config.packageOverrides = pkgs: {
|
||||||
intel-vaapi-driver =
|
intel-vaapi-driver =
|
||||||
|
|
Loading…
Reference in a new issue