Skip to content

Commit

Permalink
Reformat zangetsu config
Browse files Browse the repository at this point in the history
  • Loading branch information
arunoruto committed Jun 27, 2024
1 parent 30fc721 commit 9d66f12
Showing 1 changed file with 14 additions and 16 deletions.
30 changes: 14 additions & 16 deletions nixos/hosts/zangetsu/configuration.nix
Original file line number Diff line number Diff line change
@@ -1,21 +1,17 @@
{
config,
pkgs,
lib,
username,
...
}: {
imports = [
./hardware-configuration.nix
../..
];

fingerprint.enable = true;

# Set hostname
networking.hostName = lib.mkForce "zangetsu"; # Define your hostname.

# environment.sessionVariables.FLAKE = "/home/${username}/Projects/nix";
fingerprint.enable = true;

# Framework specific kernel Params
boot = {
Expand All @@ -31,17 +27,19 @@
};

# Enable TLP and powertop for better battery life
services.power-profiles-daemon.enable = false;
services.tlp = {
enable = true;
settings = {
CPU_BOOST_ON_AC = 1;
CPU_BOOST_ON_BAT = 0;
CPU_SCALING_GOVERNOR_ON_AC = "performance";
CPU_SCALING_GOVERNOR_ON_BAT = "powersave";
PCIE_ASPM_ON_BAT = "powersupersave";
RESTORE_DEVICE_STATE_ON_STARTUP = 1;
RUNTIME_PM_ON_BAT = "auto";
services = {
power-profiles-daemon.enable = false;
tlp = {
enable = true;
settings = {
CPU_BOOST_ON_AC = 1;
CPU_BOOST_ON_BAT = 0;
CPU_SCALING_GOVERNOR_ON_AC = "performance";
CPU_SCALING_GOVERNOR_ON_BAT = "powersave";
PCIE_ASPM_ON_BAT = "powersupersave";
RESTORE_DEVICE_STATE_ON_STARTUP = 1;
RUNTIME_PM_ON_BAT = "auto";
};
};
};
powerManagement.powertop.enable = true;
Expand Down

0 comments on commit 9d66f12

Please sign in to comment.