mirror of
https://github.com/Ahwxorg/nixos-config.git
synced 2025-12-04 15:00:13 +01:00
fix: enable thermald.service for laptops, remove old code
This commit is contained in:
parent
ac991e3860
commit
19215b301b
1 changed files with 1 additions and 75 deletions
|
|
@ -11,7 +11,6 @@ in {
|
||||||
home-manager = {
|
home-manager = {
|
||||||
users.${username} = {
|
users.${username} = {
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
# reader
|
|
||||||
acpi
|
acpi
|
||||||
brightnessctl
|
brightnessctl
|
||||||
];
|
];
|
||||||
|
|
@ -31,7 +30,7 @@ in {
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
services = {
|
services = {
|
||||||
# thermald.enable = true; # Enable if on Intel, should be a if-statement.
|
thermald.enable = true;
|
||||||
power-profiles-daemon.enable = true;
|
power-profiles-daemon.enable = true;
|
||||||
|
|
||||||
upower = {
|
upower = {
|
||||||
|
|
@ -45,76 +44,3 @@ in {
|
||||||
# powerManagement.powertop.enable = true;
|
# powerManagement.powertop.enable = true;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# { config, pkgs, lib, ... }:
|
|
||||||
# with lib;
|
|
||||||
# let
|
|
||||||
# cfg = config.liv.profiles;
|
|
||||||
# laptopPkgs = with pkgs; [
|
|
||||||
# acpi
|
|
||||||
# brightnessctl
|
|
||||||
# ];
|
|
||||||
# in
|
|
||||||
# {
|
|
||||||
# options = {
|
|
||||||
# liv-laptop = lib.mkOption {
|
|
||||||
# default = false;
|
|
||||||
# type = lib.types.bool;
|
|
||||||
# description = ''
|
|
||||||
# Enable this if the host is a laptop, to enable power management, extra packages, kernel modules, etc.
|
|
||||||
# '';
|
|
||||||
# };
|
|
||||||
# };
|
|
||||||
#
|
|
||||||
# config = lib.mkIf cfg.liv-laptop {
|
|
||||||
# home.packages = with pkgs; [
|
|
||||||
# # reader
|
|
||||||
# vlc
|
|
||||||
# ] ++ optionals cfg.liv-laptop laptopPkgs;
|
|
||||||
#
|
|
||||||
#
|
|
||||||
# networking.networkmanager.enable = true;
|
|
||||||
#
|
|
||||||
# environment.systemPackages = with pkgs; [
|
|
||||||
# cpupower-gui
|
|
||||||
# powertop
|
|
||||||
# ];
|
|
||||||
# # auto-cpufreq = {
|
|
||||||
# # enable = false;
|
|
||||||
# # settings = {
|
|
||||||
# # battery = {
|
|
||||||
# # governor = "powersave";
|
|
||||||
# # turbo = "auto";
|
|
||||||
# # };
|
|
||||||
# # charger = {
|
|
||||||
# # governor = "performance";
|
|
||||||
# # turbo = "auto";
|
|
||||||
# # };
|
|
||||||
# # };
|
|
||||||
# # };
|
|
||||||
# boot = {
|
|
||||||
# kernelModules = ["acpi_call"];
|
|
||||||
# extraModulePackages = with config.boot.kernelPackages;
|
|
||||||
# [
|
|
||||||
# acpi_call
|
|
||||||
# cpupower
|
|
||||||
# ]
|
|
||||||
# ++ [pkgs.cpupower-gui];
|
|
||||||
# };
|
|
||||||
# services = {
|
|
||||||
# thermald.enable = true;
|
|
||||||
# cpupower-gui.enable = true;
|
|
||||||
# # power-profiles-daemon.enable = true;
|
|
||||||
#
|
|
||||||
# upower = {
|
|
||||||
# enable = true;
|
|
||||||
# percentageLow = 20;
|
|
||||||
# percentageCritical = 5;
|
|
||||||
# percentageAction = 3;
|
|
||||||
# criticalPowerAction = "PowerOff";
|
|
||||||
# };
|
|
||||||
# };
|
|
||||||
# };
|
|
||||||
# }
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue