Auto: cleanup-2026-06-13T20-10-24Z

This commit is contained in:
2026-06-13 22:10:43 +02:00
parent 2585a88780
commit 4f3a74b741
7 changed files with 45 additions and 38 deletions
+9 -6
View File
@@ -1,8 +1,9 @@
{self, inputs, ...}: {
flake.nixosModules.battery-laptop = {
pkgs,
{
self,
inputs,
...
}:
}: {
flake.nixosModules.battery-laptop = {pkgs, ...}:
# https://discourse.nixos.org/t/what-is-the-best-option-for-power-management/63406/2
# we just activate tlp unconditonally
#let
@@ -21,7 +22,8 @@
# };
# config = lib.mkIf cfg.battery.enable {
/*powerManagement.powertop.enable = true; # enable powertop auto tuning on startup.
/*
powerManagement.powertop.enable = true; # enable powertop auto tuning on startup.
# Acording to https://community.frame.work/t/solved-keys-stick-and-repeat-after-being-released/51153/12
# Some powertop bug is responsable for the problem of the random keypress being stuck
# fix: from https://git.gabbie.blue/blue/nixconf/src/commit/2d1bc6dad4684c019b6b3e894408e76e2734806c/hosts/gabbielaptop/configuration.nix#L68
@@ -29,7 +31,8 @@
${lib.getExe' config.systemd.package "udevadm"} trigger -c bind -s usb -a idVendor=32ac -a idProduct=0018
# Retrigger macropad udev rules
${lib.getExe' config.systemd.package "udevadm"} trigger -c bind -s usb -a idVendor=32ac -a idProduct=0013
'';*/
'';
*/
services.system76-scheduler.settings.cfsProfiles.enable = true; # Better scheduling for CPU cycles - thanks System76!!!
services.thermald.enable = false; # Enable thermald, the temperature management daemon. (only necessary if on Intel CPUs)
services.power-profiles-daemon.enable = false; # Disable GNOMEs power management
+5 -1
View File
@@ -1,4 +1,8 @@
{inputs, self, ...}: {
{
inputs,
self,
...
}: {
flake.nixosModules.nixUtils-laptop = _: {
# nixpkgs-review crashed my laptop multiple times. We must reduce how much ressources it can take.
# for reference, my laptop is a 12 core ryzen 7