Compare commits
3 Commits
845b24f943
...
aaedafac2d
| Author | SHA1 | Date | |
|---|---|---|---|
| aaedafac2d | |||
| 22eceb0fd0 | |||
| 67b23f68e2 |
48
flake.lock
generated
48
flake.lock
generated
@@ -37,11 +37,11 @@
|
|||||||
"nixpkgs": "nixpkgs_3"
|
"nixpkgs": "nixpkgs_3"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1748795434,
|
"lastModified": 1748962860,
|
||||||
"narHash": "sha256-PMZ4qwBwMwDCpuE+CbhZMJDeY76HvweC4GdBNc7oh2U=",
|
"narHash": "sha256-Me0YBdIiECZ+gXYqhXoL7g8Uhpd7n3A545fUr2wdU38=",
|
||||||
"owner": "cachix",
|
"owner": "cachix",
|
||||||
"repo": "devenv",
|
"repo": "devenv",
|
||||||
"rev": "02334cb7e3d69847e2ce793719147e63d56e2f7c",
|
"rev": "d6152f2ff1a520fa3c69822aed983028a4024d34",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -194,11 +194,11 @@
|
|||||||
},
|
},
|
||||||
"hardware": {
|
"hardware": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1748634340,
|
"lastModified": 1748942041,
|
||||||
"narHash": "sha256-pZH4bqbOd8S+si6UcfjHovWDiWKiIGRNRMpmRWaDIms=",
|
"narHash": "sha256-HEu2gTct7nY0tAPRgBtqYepallryBKR1U8B4v2zEEqA=",
|
||||||
"owner": "nixos",
|
"owner": "nixos",
|
||||||
"repo": "nixos-hardware",
|
"repo": "nixos-hardware",
|
||||||
"rev": "daa628a725ab4948e0e2b795e8fb6f4c3e289a7a",
|
"rev": "fc7c4714125cfaa19b048e8aaf86b9c53e04d853",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -214,11 +214,11 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1748830238,
|
"lastModified": 1748955489,
|
||||||
"narHash": "sha256-EB+LzYHK0D5aqxZiYoPeoZoOzSAs8eqBDxm3R+6wMKU=",
|
"narHash": "sha256-OmZXyW2g5qIuo5Te74McwR0TwauCO2sF3/SjGDVuxyg=",
|
||||||
"owner": "nix-community",
|
"owner": "nix-community",
|
||||||
"repo": "home-manager",
|
"repo": "home-manager",
|
||||||
"rev": "c7fdb7e90bff1a51b79c1eed458fb39e6649a82a",
|
"rev": "bb846c031be68a96466b683be32704ef6e07b159",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -305,11 +305,11 @@
|
|||||||
"systems": "systems"
|
"systems": "systems"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1748825982,
|
"lastModified": 1748917805,
|
||||||
"narHash": "sha256-ccV89+U2v5F7wUDViU6XcnA7gMBd+Hzx5EuAlPqIDKA=",
|
"narHash": "sha256-zAV6Z4Ndihv4lg4D7gciCvcO0jvEN70K0U4Y/wkEhag=",
|
||||||
"owner": "nix-community",
|
"owner": "nix-community",
|
||||||
"repo": "nix4vscode",
|
"repo": "nix4vscode",
|
||||||
"rev": "e287cb38645f2abf7e4b318de4925778c6bcc232",
|
"rev": "9e5c5e0167a3716c2aaa0b4dd1acc89b72c59408",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -320,11 +320,11 @@
|
|||||||
},
|
},
|
||||||
"nixos-hardware": {
|
"nixos-hardware": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1748634340,
|
"lastModified": 1748942041,
|
||||||
"narHash": "sha256-pZH4bqbOd8S+si6UcfjHovWDiWKiIGRNRMpmRWaDIms=",
|
"narHash": "sha256-HEu2gTct7nY0tAPRgBtqYepallryBKR1U8B4v2zEEqA=",
|
||||||
"owner": "NixOS",
|
"owner": "NixOS",
|
||||||
"repo": "nixos-hardware",
|
"repo": "nixos-hardware",
|
||||||
"rev": "daa628a725ab4948e0e2b795e8fb6f4c3e289a7a",
|
"rev": "fc7c4714125cfaa19b048e8aaf86b9c53e04d853",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -352,11 +352,11 @@
|
|||||||
},
|
},
|
||||||
"nixpkgs-darwin": {
|
"nixpkgs-darwin": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1748603838,
|
"lastModified": 1748850610,
|
||||||
"narHash": "sha256-bW0ZaGOErMm7/Tfs+zhmBEURH0OVVT02dHITSDXEPjY=",
|
"narHash": "sha256-ezzBlhhjkMzRRfrfpzgR+iZI9lhjQNjrNNP7Ct+tX/c=",
|
||||||
"owner": "nixos",
|
"owner": "nixos",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "ad06b96e3bf30030a8b1901e3140fda7a31b53ac",
|
"rev": "10e046fb1c3f5f4bb044787697f5a51223f8ea28",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -368,11 +368,11 @@
|
|||||||
},
|
},
|
||||||
"nixpkgs-stable": {
|
"nixpkgs-stable": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1748421225,
|
"lastModified": 1748810746,
|
||||||
"narHash": "sha256-XXILOc80tvlvEQgYpYFnze8MkQQmp3eQxFbTzb3m/R0=",
|
"narHash": "sha256-1na8blYvU1F6HLwx/aFjrhUqpqZ0SCsnqqW9n2vXvok=",
|
||||||
"owner": "NixOS",
|
"owner": "NixOS",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "78add7b7abb61689e34fc23070a8f55e1d26185b",
|
"rev": "78d9f40fd6941a1543ffc3ed358e19c69961d3c1",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -545,11 +545,11 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1748834461,
|
"lastModified": 1748920570,
|
||||||
"narHash": "sha256-1OfK7Ec2EIqwf/EhNikMp8DcdOcQG1CBS5CK4cAPMjs=",
|
"narHash": "sha256-m7EshkqPxa3IxN/qwxP1LlMlRdn37aiK0hghDieho8A=",
|
||||||
"owner": "0xc000022070",
|
"owner": "0xc000022070",
|
||||||
"repo": "zen-browser-flake",
|
"repo": "zen-browser-flake",
|
||||||
"rev": "2527ce862b0a80c3c4bd87e6717c7ac0fee1c456",
|
"rev": "ff5bf0bcf588e8c1d0f5fcd635b0c8e1cce8aee5",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
|||||||
@@ -9,6 +9,13 @@
|
|||||||
pane_frames = false;
|
pane_frames = false;
|
||||||
copy_on_select = false;
|
copy_on_select = false;
|
||||||
show_startup_tips = true;
|
show_startup_tips = true;
|
||||||
|
show_release_notes = false;
|
||||||
|
|
||||||
|
keybinds = {
|
||||||
|
locked = {
|
||||||
|
bind."Ctrl g" = {SwitchToMode = "normal";};
|
||||||
|
};
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -4,16 +4,55 @@
|
|||||||
services.tlp = {
|
services.tlp = {
|
||||||
enable = true;
|
enable = true;
|
||||||
settings = {
|
settings = {
|
||||||
CPU_SCALING_GOVERNOR_ON_AC = "performance";
|
# Set CPU driver operation mode to 'active' to allow the CPU to manage its own frequency scaling
|
||||||
|
CPU_DRIVER_OPMODE_ON_AC = "active";
|
||||||
|
CPU_DRIVER_OPMODE_ON_BAT = "active";
|
||||||
|
|
||||||
|
# Use 'powersave' governor, which, with intel_pstate in active mode, allows HWP to manage frequencies efficiently
|
||||||
|
CPU_SCALING_GOVERNOR_ON_AC = "powersave";
|
||||||
CPU_SCALING_GOVERNOR_ON_BAT = "powersave";
|
CPU_SCALING_GOVERNOR_ON_BAT = "powersave";
|
||||||
|
|
||||||
CPU_ENERGY_PERF_POLICY_ON_BAT = "power";
|
# Set Energy Performance Preference (EPP) to balance performance on AC and favor power savings on battery
|
||||||
CPU_ENERGY_PERF_POLICY_ON_AC = "performance";
|
CPU_ENERGY_PERF_POLICY_ON_AC = "balance_performance";
|
||||||
|
CPU_ENERGY_PERF_POLICY_ON_BAT = "balance_power";
|
||||||
|
|
||||||
|
# Define CPU performance limits: full performance on AC, limited to 50% on battery to save power
|
||||||
CPU_MIN_PERF_ON_AC = 0;
|
CPU_MIN_PERF_ON_AC = 0;
|
||||||
CPU_MAX_PERF_ON_AC = 100;
|
CPU_MAX_PERF_ON_AC = 100;
|
||||||
CPU_MIN_PERF_ON_BAT = 0;
|
CPU_MIN_PERF_ON_BAT = 0;
|
||||||
CPU_MAX_PERF_ON_BAT = 20;
|
CPU_MAX_PERF_ON_BAT = 50;
|
||||||
|
|
||||||
|
# Enable Turbo Boost on AC for maximum performance; disable on battery to conserve energy
|
||||||
|
CPU_BOOST_ON_AC = 1;
|
||||||
|
CPU_BOOST_ON_BAT = 0;
|
||||||
|
|
||||||
|
# Enable Intel's Hardware P-States (HWP) dynamic boost on AC; disable on battery
|
||||||
|
CPU_HWP_DYN_BOOST_ON_AC = 1;
|
||||||
|
CPU_HWP_DYN_BOOST_ON_BAT = 1;
|
||||||
|
|
||||||
|
# Set platform profile to 'performance' on AC and 'low-power' on battery, if supported by the system
|
||||||
|
PLATFORM_PROFILE_ON_AC = "balanced";
|
||||||
|
PLATFORM_PROFILE_ON_BAT = "low-power";
|
||||||
|
|
||||||
|
# Enable Wi-Fi power saving on both AC and battery
|
||||||
|
WIFI_PWR_ON_AC = "on";
|
||||||
|
WIFI_PWR_ON_BAT = "on";
|
||||||
|
|
||||||
|
# Configure PCIe Active State Power Management: default on AC, aggressive power saving on battery
|
||||||
|
PCIE_ASPM_ON_AC = "default";
|
||||||
|
PCIE_ASPM_ON_BAT = "powersupersave";
|
||||||
|
|
||||||
|
# Enable runtime power management for PCIe devices: 'on' for AC, 'auto' for battery
|
||||||
|
RUNTIME_PM_ON_AC = "on";
|
||||||
|
RUNTIME_PM_ON_BAT = "auto";
|
||||||
|
|
||||||
|
# Enable sound power saving on both AC and battery; '1' sets a 1-second timeout
|
||||||
|
SOUND_POWER_SAVE_ON_AC = 1;
|
||||||
|
SOUND_POWER_SAVE_ON_BAT = 1;
|
||||||
|
SOUND_POWER_SAVE_CONTROLLER = "Y";
|
||||||
|
|
||||||
|
# Enable USB autosuspend to save power when devices are idle
|
||||||
|
USB_AUTOSUSPEND = 1;
|
||||||
|
|
||||||
#Optional helps save long term battery health
|
#Optional helps save long term battery health
|
||||||
#START_CHARGE_THRESH_BAT0 = 40; # 40 and below it starts to charge
|
#START_CHARGE_THRESH_BAT0 = 40; # 40 and below it starts to charge
|
||||||
|
|||||||
Reference in New Issue
Block a user