temperature: add tld and powertop
This commit is contained in:
parent
c30640f01d
commit
a37495cc43
4 changed files with 16 additions and 1 deletions
|
@ -10,11 +10,12 @@
|
|||
./tinc.nix
|
||||
|
||||
#./wifi-access-point.nix
|
||||
|
||||
#./wireshark.nix
|
||||
|
||||
];
|
||||
|
||||
|
||||
|
||||
networking.hostName = "sterni";
|
||||
|
||||
system.custom.wifi.interfaces = [ "wlp3s0" ];
|
||||
|
|
|
@ -40,6 +40,7 @@ in {
|
|||
|
||||
(mkIf (cfg.system == "networkmanager") {
|
||||
networking.networkmanager.enable = true;
|
||||
networking.networkmanager.wifi.powersave = true;
|
||||
})
|
||||
|
||||
(mkIf (cfg.configurationFile != null) {
|
||||
|
|
|
@ -51,6 +51,12 @@
|
|||
|
||||
system.custom = { bluetooth.enable = true; };
|
||||
|
||||
# temperature / power consumption
|
||||
# https://linrunner.de/en/tlp/docs/tlp-linux-advanced-power-management.html
|
||||
services.tlp.enable = true;
|
||||
services.thermald.enable = true;
|
||||
powerManagement.powertop.enable = true;
|
||||
|
||||
# overwrite use zram on small RAM systems
|
||||
fileSystems."/share/" = lib.mkDefault {
|
||||
device = "tmpfs";
|
||||
|
|
|
@ -292,6 +292,13 @@ in {
|
|||
links
|
||||
lynx
|
||||
|
||||
# temperature
|
||||
s-tui
|
||||
(pkgs.writers.writeDashBin "temperature" ''
|
||||
${pkgs.s-tui}/bin/s-tui
|
||||
'')
|
||||
powertop
|
||||
|
||||
memo
|
||||
nixfmt
|
||||
dateutils
|
||||
|
|
Loading…
Reference in a new issue