41 lines
939 B
Nix
41 lines
939 B
Nix
{ pkgs, ... }:
|
|
|
|
{
|
|
imports = [ ../common/configuration.nix ./hardware-configuration.nix ];
|
|
|
|
networking.hostName = "ahrc-laptop";
|
|
|
|
console.keyMap = "fr-pc";
|
|
|
|
environment.systemPackages = with pkgs; [ powertop brightnessctl ];
|
|
|
|
services.libinput.enable = true;
|
|
|
|
services.tlp = {
|
|
enable = true;
|
|
settings = {
|
|
CPU_SCALING_GOVERNOR_ON_AC = "performance";
|
|
CPU_SCALING_GOVERNOR_ON_BAT = "powersave";
|
|
|
|
CPU_ENERGY_PERF_POLICY_ON_BAT = "power";
|
|
CPU_ENERGY_PERF_POLICY_ON_AC = "performance";
|
|
|
|
CPU_MIN_PERF_ON_AC = 100;
|
|
CPU_MAX_PERF_ON_AC = 100;
|
|
CPU_MIN_PERF_ON_BAT = 20;
|
|
CPU_MAX_PERF_ON_BAT = 100;
|
|
};
|
|
};
|
|
|
|
programs.bash.promptInit = ''
|
|
if [ "$(whoami)" = root ]; then
|
|
color=31
|
|
else
|
|
color=32
|
|
user='\u@'
|
|
fi
|
|
PS1="\[\033[0m\](\[\033[1;''${color}m\]''${user}\h\[\033[0m\] \[\033[1;34m\]\W\[\033[0m\])\\$ "
|
|
'';
|
|
|
|
system.stateVersion = "24.05";
|
|
}
|