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
|
./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" ];
|
||||||
|
|
|
@ -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) {
|
||||||
|
|
|
@ -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";
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue