mirror of
https://github.com/CHN-beta/nixos.git
synced 2024-10-23 18:08:45 +08:00
27 lines
656 B
Nix
27 lines
656 B
Nix
{ pkgs, ... }@inputs:
|
|
{
|
|
config =
|
|
{
|
|
nix.settings.system-features = [ "gccarch-alderlake" ];
|
|
services.dbus.implementation = "broker";
|
|
programs.dconf.enable = true;
|
|
hardware.opengl.enable = true;
|
|
systemd.services.reload-iwlwifi-after-hibernate =
|
|
{
|
|
description = "reload iwlwifi after resume from hibernate";
|
|
after = [ "systemd-hibernate.service" ];
|
|
serviceConfig =
|
|
{
|
|
Type = "oneshot";
|
|
ExecStart =
|
|
[
|
|
"${pkgs.kmod}/bin/modprobe -r iwlwifi"
|
|
"${pkgs.kmod}/bin/modprobe iwlwifi"
|
|
"echo 0 | tee /sys/devices/system/cpu/intel_pstate/no_turbo"
|
|
];
|
|
};
|
|
wantedBy = [ "systemd-hibernate.service" ];
|
|
};
|
|
};
|
|
}
|