format all
This commit is contained in:
@@ -6,7 +6,10 @@
|
||||
services.system76-scheduler.settings.cfsProfiles.enable = true;
|
||||
|
||||
services.upower.enable = true;
|
||||
environment.systemPackages = with pkgs; [ gnome-power-manager powertop ];
|
||||
environment.systemPackages = with pkgs; [
|
||||
gnome-power-manager
|
||||
powertop
|
||||
];
|
||||
|
||||
# Enable TLP (better than gnomes internal power manager)
|
||||
services.tlp = {
|
||||
@@ -19,11 +22,11 @@
|
||||
CPU_ENERGY_PERF_POLICY_ON_BAT = "balance_power";
|
||||
CPU_ENERGY_PERF_POLICY_ON_AC = "performance";
|
||||
|
||||
RADEON_POWER_PROFILE_ON_AC="performance";
|
||||
RADEON_POWER_PROFILE_ON_BAT="battery";
|
||||
RADEON_POWER_PROFILE_ON_AC = "performance";
|
||||
RADEON_POWER_PROFILE_ON_BAT = "battery";
|
||||
|
||||
AMDGPU_ABM_LEVEL_ON_AC=0;
|
||||
AMDGPU_ABM_LEVEL_ON_BAT=2;
|
||||
AMDGPU_ABM_LEVEL_ON_AC = 0;
|
||||
AMDGPU_ABM_LEVEL_ON_BAT = 2;
|
||||
|
||||
#CPU_MIN_PERF_ON_AC = 0;
|
||||
#CPU_MAX_PERF_ON_AC = 100;
|
||||
|
||||
@@ -10,12 +10,17 @@ in
|
||||
openFirewall = true;
|
||||
};
|
||||
networking.interfaces."${pi_interface}" = {
|
||||
ipv4.addresses = [{
|
||||
address = "192.168.1.1";
|
||||
prefixLength = 24;
|
||||
}];
|
||||
ipv4.addresses = [
|
||||
{
|
||||
address = "192.168.1.1";
|
||||
prefixLength = 24;
|
||||
}
|
||||
];
|
||||
};
|
||||
networking.firewall.allowedUDPPorts = [ 67 68 ];
|
||||
networking.firewall.allowedUDPPorts = [
|
||||
67
|
||||
68
|
||||
];
|
||||
services = {
|
||||
kea.dhcp4 = {
|
||||
enable = true;
|
||||
@@ -62,5 +67,4 @@ in
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user