From b7d8c84b4bc83fd445310e7b89648dd659d15ad9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Czy=C5=BC?= Date: Wed, 8 Jan 2025 16:58:00 +0100 Subject: [PATCH] fix: laptop typos adjustments --- hosts/modules/tlp.nix | 11 ++--------- hosts/thor/configuration.nix | 5 +++-- 2 files changed, 5 insertions(+), 11 deletions(-) diff --git a/hosts/modules/tlp.nix b/hosts/modules/tlp.nix index 846f0a6..6984354 100644 --- a/hosts/modules/tlp.nix +++ b/hosts/modules/tlp.nix @@ -1,6 +1,5 @@ { config, - hostname, ... }: { boot = { @@ -12,15 +11,9 @@ enable = true; settings = { - TLP_DEFAULT_MODE = - if hostname == "laptop" - then "BAT" - else "AC"; + TLP_DEFAULT_MODE = "BAT"; - TLP_PERSISTENT_DEFAULT = - if hostname == "laptop" - then 0 - else 1; + TLP_PERSISTENT_DEFAULT = 0; CPU_BOOST_ON_AC = 1; CPU_BOOST_ON_BAT = 0; diff --git a/hosts/thor/configuration.nix b/hosts/thor/configuration.nix index 43cf14e..1b0c93c 100644 --- a/hosts/thor/configuration.nix +++ b/hosts/thor/configuration.nix @@ -29,12 +29,12 @@ ../modules/ananicy.nix ../modules/bluetooth.nix ../modules/boot.nix - ../modules/configuration.nix + ../modules/common.nix ../modules/development.nix ../modules/distributed-builds.nix ../modules/fstrim.nix ../modules/gaming.nix - ../modules/greetd.nix + # ../modules/greetd.nix ../modules/gsettings.nix # ../modules/kde.nix # ../modules/lanzaboot.nix @@ -50,6 +50,7 @@ ../modules/tlp.nix ../modules/users.nix ../modules/vm.nix + ../modules/xserver.nix ]; networking.hostName = "thor";