Compare commits

...

2 Commits

Author SHA1 Message Date
7ae2517c04 configuration shell spaceship 2018-11-11 11:13:45 +01:00
308de58100 activation service tlp 2018-11-11 11:13:25 +01:00
2 changed files with 14 additions and 1 deletions

View File

@ -21,6 +21,14 @@
boot.tmpOnTmpfs = true; boot.tmpOnTmpfs = true;
boot.plymouth.enable = true; boot.plymouth.enable = true;
services.tlp.enable = true;
services.tlp.extraConfig = ''
START_CHARGE_THRESH_BAT0=85
STOP_CHARGE_THRESH_BAT0=90
CPU_SCALING_GOVERNOR_ON_BAT=powersave
ENERGY_PERF_POLICY_ON_BAT=powersave
'';
# NVIDIA # NVIDIA
services.xserver.videoDrivers = [ "nvidia" ]; services.xserver.videoDrivers = [ "nvidia" ];
hardware.nvidia.optimus_prime.enable = true; hardware.nvidia.optimus_prime.enable = true;

View File

@ -79,7 +79,12 @@
}; };
}; };
environment.variables = { EDITOR = "nvim"; }; environment.variables = {
EDITOR = "nvim";
SPACESHIP_TIME_SHOW = "true";
SPACESHIP_BATTERY_THRESHOLD = "50";
SPACESHIP_EXIT_CODE_SHOW = "true";
};
nix.gc.automatic = true; nix.gc.automatic = true;
nix.gc.options = "--delete-older-than 15d"; nix.gc.options = "--delete-older-than 15d";