From 9448da57f5d113a91a5defd98f2015878d330090 Mon Sep 17 00:00:00 2001 From: Daniel Flanagan Date: Thu, 26 Oct 2023 13:55:08 -0500 Subject: [PATCH] Dragon go fast pls --- modules/nixos/common.nix | 3 ++- nixos/dragon/default.nix | 2 +- nixos/foxtrot/default.nix | 16 ++++++++++------ 3 files changed, 13 insertions(+), 8 deletions(-) diff --git a/modules/nixos/common.nix b/modules/nixos/common.nix index f9c15bb..c08644d 100644 --- a/modules/nixos/common.nix +++ b/modules/nixos/common.nix @@ -63,6 +63,7 @@ sqlite sysstat unzip + usbutils watchexec wget xh @@ -87,7 +88,7 @@ "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIAPLXOjupz3ScYjgrF+ehrbp9OvGAWQLI6fplX6w9Ijb daniel@lyte.dev" ]; group = "daniel"; - extraGroups = ["users" "wheel" "video"]; + extraGroups = ["users" "wheel" "video" "dialout"]; packages = []; }; diff --git a/nixos/dragon/default.nix b/nixos/dragon/default.nix index 4e737cc..f24846c 100644 --- a/nixos/dragon/default.nix +++ b/nixos/dragon/default.nix @@ -86,7 +86,7 @@ boot.kernelModules = ["kvm-amd"]; hardware.bluetooth.enable = true; - powerManagement.cpuFreqGovernor = lib.mkDefault "powersave"; + powerManagement.cpuFreqGovernor = lib.mkDefault "performance"; services.printing.enable = true; environment = { diff --git a/nixos/foxtrot/default.nix b/nixos/foxtrot/default.nix index 7e4cd1a..ba772da 100644 --- a/nixos/foxtrot/default.nix +++ b/nixos/foxtrot/default.nix @@ -42,20 +42,24 @@ hardware.bluetooth.enable = true; powerManagement.cpuFreqGovernor = lib.mkDefault "powersave"; services.printing.enable = true; + services.fprintd = { + enable = true; + tod.enable = true; + # tod.driver = pkgs.libfprint-2-tod1-goodix; + }; services.power-profiles-daemon.enable = false; 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_SCALING_GOVERNOR_ON_BAT = "powersave"; + CPU_MIN_PERF_ON_BAT = 0; + CPU_MAX_PERF_ON_BAT = 60; + CPU_SCALING_GOVERNOR_ON_AC = "performance"; + CPU_ENERGY_PERF_POLICY_ON_AC = "performance"; CPU_MIN_PERF_ON_AC = 0; CPU_MAX_PERF_ON_AC = 100; - CPU_MIN_PERF_ON_BAT = 0; - CPU_MAX_PERF_ON_BAT = 20; }; }; powerManagement.powertop.enable = true;