Compare commits
5 Commits
325361c82a
...
032487f615
Author | SHA1 | Date |
---|---|---|
coolneng | 032487f615 | |
coolneng | edfc063dfd | |
coolneng | 446b13d9de | |
coolneng | 17c4d45fca | |
coolneng | cbf4718195 |
|
@ -13,11 +13,11 @@ with pkgs;
|
||||||
"nohibernate"
|
"nohibernate"
|
||||||
"ipv6.disable=1"
|
"ipv6.disable=1"
|
||||||
"ahci.mobile_lpm_policy=3"
|
"ahci.mobile_lpm_policy=3"
|
||||||
"pcie_aspm=force"
|
|
||||||
"nmi_watchdog=0"
|
"nmi_watchdog=0"
|
||||||
"intel_pstate=disable"
|
"intel_pstate=disable"
|
||||||
];
|
];
|
||||||
kernelModules = [ "i915" ];
|
kernelModules = [ "i915" "acpi_call" ];
|
||||||
|
extraModulePackages = with config.boot.kernelPackages; [ acpi_call ];
|
||||||
blacklistedKernelModules = [ "btusb" "bluetooth" ];
|
blacklistedKernelModules = [ "btusb" "bluetooth" ];
|
||||||
supportedFilesystems = [ "zfs" ];
|
supportedFilesystems = [ "zfs" ];
|
||||||
zfs = {
|
zfs = {
|
||||||
|
@ -33,8 +33,7 @@ with pkgs;
|
||||||
};
|
};
|
||||||
services.fwupd.enable = true;
|
services.fwupd.enable = true;
|
||||||
|
|
||||||
hardware.opengl.extraPackages =
|
hardware.opengl.extraPackages = [ vaapiIntel vaapiVdpau libvdpau-va-gl ];
|
||||||
[ intel-media-driver vaapiIntel vaapiVdpau libvdpau-va-gl ];
|
|
||||||
|
|
||||||
# Bootloader configuration
|
# Bootloader configuration
|
||||||
boot.loader = {
|
boot.loader = {
|
||||||
|
|
|
@ -38,11 +38,11 @@
|
||||||
},
|
},
|
||||||
"nixpkgs": {
|
"nixpkgs": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1673631141,
|
"lastModified": 1674120619,
|
||||||
"narHash": "sha256-AprpYQ5JvLS4wQG/ghm2UriZ9QZXvAwh1HlgA/6ZEVQ=",
|
"narHash": "sha256-xLT1FQl7/jNPOEq5q/vmc3AExt1V9LtcjM+QY2+MUpA=",
|
||||||
"owner": "NixOS",
|
"owner": "NixOS",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "befc83905c965adfd33e5cae49acb0351f6e0404",
|
"rev": "d7705c01ef0a39c8ef532d1033bace8845a07d35",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
|
|
@ -13,7 +13,6 @@ let
|
||||||
export NVIM_LISTEN_ADDRESS=/tmp/nvimsocket
|
export NVIM_LISTEN_ADDRESS=/tmp/nvimsocket
|
||||||
export GIT_CONFIG_NOSYSTEM=true
|
export GIT_CONFIG_NOSYSTEM=true
|
||||||
export SYSTEMD_LESS=FRSMK
|
export SYSTEMD_LESS=FRSMK
|
||||||
export LIBVA_DRIVER_NAME=iHD
|
|
||||||
|
|
||||||
exec sway $@
|
exec sway $@
|
||||||
'';
|
'';
|
||||||
|
|
|
@ -2,7 +2,13 @@
|
||||||
|
|
||||||
{
|
{
|
||||||
# Enable the TLP daemon
|
# Enable the TLP daemon
|
||||||
services.tlp.enable = true;
|
services.tlp = {
|
||||||
|
enable = true;
|
||||||
|
settings = {
|
||||||
|
PCIE_ASPM_ON_AC = "performance";
|
||||||
|
PCIE_ASPM_ON_BAT = "powersave";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
# Enable the auto-cpufreq daemon
|
# Enable the auto-cpufreq daemon
|
||||||
services.auto-cpufreq.enable = true;
|
services.auto-cpufreq.enable = true;
|
||||||
|
@ -24,9 +30,6 @@
|
||||||
# Prevent overheating of the CPU
|
# Prevent overheating of the CPU
|
||||||
services.thermald.enable = true;
|
services.thermald.enable = true;
|
||||||
|
|
||||||
# Provide power management support to programs
|
|
||||||
services.upower.enable = true;
|
|
||||||
|
|
||||||
# HACK Enable internal microphone when headphones are plugged in and add workaround for frequent WiFi disconnects
|
# HACK Enable internal microphone when headphones are plugged in and add workaround for frequent WiFi disconnects
|
||||||
hardware.firmware = [
|
hardware.firmware = [
|
||||||
(pkgs.writeTextDir "/lib/firmware/hda-jack-retask.fw" ''
|
(pkgs.writeTextDir "/lib/firmware/hda-jack-retask.fw" ''
|
||||||
|
|
Loading…
Reference in New Issue