1
0
Fork 0

General: replace auto-cpufreq with power-profiles-daemon

This commit is contained in:
Aires 2024-12-06 16:29:13 -05:00
parent f6a4a172f0
commit adc8eb8661
3 changed files with 3 additions and 32 deletions

View file

@ -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",

View file

@ -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

View file

@ -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