add flakes, zen support, some fan speed tryes

This commit is contained in:
2025-11-15 08:00:50 +03:00
parent 66799e2c89
commit 7acc6b352f
8 changed files with 90 additions and 42 deletions
+44 -2
View File
@@ -1,6 +1,8 @@
{ config, pkgs, ... }:
{
nix.settings.experimental-features = [ "nix-command" "flakes" ];
networking.nameservers = [ "8.8.8.8" "1.1.1.1" ];
networking.networkmanager.insertNameservers = [ "1.1.1.1" "8.8.8.8" ];
networking.firewall.enable = false;
@@ -8,7 +10,45 @@
programs.firefox.enable = true;
nixpkgs.config.allowUnfree = true;
environment.systemPackages = with pkgs; [ kitty amnezia-vpn ];
environment.systemPackages = with pkgs; [ kitty amnezia-vpn lenovo-legion ];
# hardware.fancontrol.enable = true;
# hardware.fancontrol.config = ''
# INTERVAL=5
# FCTEMPS=( /sys/class/hwmon/hwmon9/temp1_input )
# FCFANS=( /sys/class/hwmon/hwmon9/pwm1 )
# MINTEMP=25
# MAXTEMP=90
# MINPWM=50
# MAXPWM=200
# '';
# hardware.fancontrol.config = ''
# INTERVAL=2
# FCTEMPS=hwmon9/device/pwm1=/sys/class/hwmon/hwmon0/temp1_input
# FCFANS=hwmon9/device/pwm1=/sys/class/hwmon/hwmon9/fan1_input
# MINTEMP=hwmon9/device/pwm1=25
# MAXTEMP=hwmon9/device/pwm1=80
# MINPWM=hwmon9/device/pwm1=0
# MAXPWM=hwmon9/device/pwm1=220
# MINSTART=hwmon9/device/pwm1=25
# MINSTOP=hwmon9/device/pwm1=0
# '';
# services.thinkfan = {
# enable = true;
# levels = [
# [ 0 0 25 ] # level, low temp, high temp
# [ 1 20 55 ]
# [ 2 50 65 ]
# [ 3 60 75 ]
# [ 4 70 85 ]
# [ 7 80 200 ]
# ];
# };
security.sudo.extraRules = [{
users = [ "ALL" ];
@@ -52,7 +92,9 @@
consoleLogLevel = 3;
initrd.verbose = false;
kernelModules = [ "tun" ]; # for VPN
kernelModules = [ "tun" "lenovo-legion-module" ]; # for VPN
extraModulePackages = with config.boot.kernelPackages;
[ lenovo-legion-module ];
kernelParams = [
"quiet"
"splash"