General: replace auto-cpufreq with power-profiles-daemon
This commit is contained in:
parent
f6a4a172f0
commit
adc8eb8661
22
flake.lock
22
flake.lock
|
@ -1,26 +1,5 @@
|
|||
{
|
||||
"nodes": {
|
||||
"auto-cpufreq": {
|
||||
"inputs": {
|
||||
"nixpkgs": [
|
||||
"nixpkgs"
|
||||
]
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1725514537,
|
||||
"narHash": "sha256-Xsh3d7rQY7RKzZ7J0swrgxZEyITb7B3oX5F/tcBGjfk=",
|
||||
"owner": "AdnanHodzic",
|
||||
"repo": "auto-cpufreq",
|
||||
"rev": "a42e8fb51e08059411d52451141cac86f1bc788a",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "AdnanHodzic",
|
||||
"ref": "v2.4.0",
|
||||
"repo": "auto-cpufreq",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"crane": {
|
||||
"inputs": {
|
||||
"nixpkgs": [
|
||||
|
@ -414,7 +393,6 @@
|
|||
},
|
||||
"root": {
|
||||
"inputs": {
|
||||
"auto-cpufreq": "auto-cpufreq",
|
||||
"flatpak": "flatpak",
|
||||
"home-manager": "home-manager",
|
||||
"lanzaboote": "lanzaboote",
|
||||
|
|
|
@ -10,12 +10,6 @@
|
|||
nixpkgs.url = "github:nixos/nixpkgs/nixos-24.11";
|
||||
nixpkgs-unstable.url = "github:nixos/nixpkgs/nixos-unstable";
|
||||
|
||||
# Power management via auto-cpufreq
|
||||
auto-cpufreq = {
|
||||
url = "github:AdnanHodzic/auto-cpufreq/v2.4.0";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
|
||||
# Flatpak support
|
||||
flatpak.url = "github:gmodena/nix-flatpak/v0.5.1";
|
||||
|
||||
|
@ -86,7 +80,6 @@
|
|||
systems = {
|
||||
# Modules to import for all systems
|
||||
modules.nixos = with inputs; [
|
||||
auto-cpufreq.nixosModules.default
|
||||
lix.nixosModules.default
|
||||
lanzaboote.nixosModules.lanzaboote
|
||||
flatpak.nixosModules.nix-flatpak
|
||||
|
|
|
@ -51,9 +51,9 @@ in
|
|||
# Install base packages
|
||||
environment.systemPackages = cfg.corePackages ++ cfg.packages;
|
||||
|
||||
# Configure power management via auto-cpufreq
|
||||
# https://github.com/AdnanHodzic/auto-cpufreq
|
||||
programs.auto-cpufreq.enable = cfg.powerManagement.enable;
|
||||
# Configure power management via power-profiles-daemon
|
||||
# https://gitlab.freedesktop.org/upower/power-profiles-daemon
|
||||
services.power-profiles-daemon.enable = cfg.powerManagement.enable;
|
||||
|
||||
services = {
|
||||
# Automatically set the timezone based on location
|
||||
|
|
Loading…
Reference in a new issue