using surface-linux kernel again

This commit is contained in:
twoneis 2024-02-18 17:39:28 +01:00
parent e1850a9410
commit 94749662b7
2 changed files with 6 additions and 15 deletions

View file

@ -4,9 +4,6 @@
./options.nix ./options.nix
]; ];
# Select kernel version
boot.kernelPackages = pkgs.linuxPackages_zen;
networking.hostName = "surface"; networking.hostName = "surface";
# Add user to surface control group for surface linux # Add user to surface control group for surface linux
@ -32,18 +29,11 @@
]; ];
}; };
services.auto-cpufreq = { services.thermald.enable = true;
enable = true;
settings = { microsoft-surface = {
battery = { ipts.enable = true;
governor = "powersaver"; surface-control.enable = true;
turbo = "never";
};
charger = {
governor = "performance";
turbo = "auto";
};
};
}; };
# This value determines the NixOS release from which the default # This value determines the NixOS release from which the default

View file

@ -36,6 +36,7 @@
system = "x86_64-linux"; system = "x86_64-linux";
modules = [ modules = [
./devices/surface ./devices/surface
nixos-hardware.nixosModules.microsoft-surface-pro-intel
] ++ clientModules; ] ++ clientModules;
}; };