From 9d66f1284e000bfa8a759f43f58671af9b2c00bb Mon Sep 17 00:00:00 2001 From: Mirza Arnaut Date: Fri, 28 Jun 2024 01:45:34 +0200 Subject: [PATCH] Reformat zangetsu config --- nixos/hosts/zangetsu/configuration.nix | 30 ++++++++++++-------------- 1 file changed, 14 insertions(+), 16 deletions(-) diff --git a/nixos/hosts/zangetsu/configuration.nix b/nixos/hosts/zangetsu/configuration.nix index af80bd0..42c44d5 100644 --- a/nixos/hosts/zangetsu/configuration.nix +++ b/nixos/hosts/zangetsu/configuration.nix @@ -1,8 +1,6 @@ { - config, pkgs, lib, - username, ... }: { imports = [ @@ -10,12 +8,10 @@ ../.. ]; - 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 = { @@ -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;