temperature: add tld and powertop

This commit is contained in:
Ingolf Wagner 2020-01-29 15:00:12 +13:00
parent c30640f01d
commit a37495cc43
No known key found for this signature in database
GPG key ID: 76BF5F1928B9618B
4 changed files with 16 additions and 1 deletions

View file

@ -10,11 +10,12 @@
./tinc.nix ./tinc.nix
#./wifi-access-point.nix #./wifi-access-point.nix
#./wireshark.nix #./wireshark.nix
]; ];
networking.hostName = "sterni"; networking.hostName = "sterni";
system.custom.wifi.interfaces = [ "wlp3s0" ]; system.custom.wifi.interfaces = [ "wlp3s0" ];

View file

@ -40,6 +40,7 @@ in {
(mkIf (cfg.system == "networkmanager") { (mkIf (cfg.system == "networkmanager") {
networking.networkmanager.enable = true; networking.networkmanager.enable = true;
networking.networkmanager.wifi.powersave = true;
}) })
(mkIf (cfg.configurationFile != null) { (mkIf (cfg.configurationFile != null) {

View file

@ -51,6 +51,12 @@
system.custom = { bluetooth.enable = true; }; 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 # overwrite use zram on small RAM systems
fileSystems."/share/" = lib.mkDefault { fileSystems."/share/" = lib.mkDefault {
device = "tmpfs"; device = "tmpfs";

View file

@ -292,6 +292,13 @@ in {
links links
lynx lynx
# temperature
s-tui
(pkgs.writers.writeDashBin "temperature" ''
${pkgs.s-tui}/bin/s-tui
'')
powertop
memo memo
nixfmt nixfmt
dateutils dateutils