From f62952e078342e260348dd64c7c7de8e4b4359e6 Mon Sep 17 00:00:00 2001 From: Miguel Palhas Date: Sun, 6 Oct 2024 17:23:38 +0100 Subject: [PATCH] laptop --- home/common/programs/hyprland/avizo.nix | 4 ++- home/common/programs/hyprland/default.nix | 2 +- hosts/arrakis/default.nix | 1 + hosts/common/features/laptop.nix | 30 +++++++++++++++++++++++ hosts/common/features/wayland.nix | 4 --- 5 files changed, 35 insertions(+), 6 deletions(-) create mode 100644 hosts/common/features/laptop.nix diff --git a/home/common/programs/hyprland/avizo.nix b/home/common/programs/hyprland/avizo.nix index 2952a62..0cfd33b 100644 --- a/home/common/programs/hyprland/avizo.nix +++ b/home/common/programs/hyprland/avizo.nix @@ -3,7 +3,9 @@ services.avizo = { enable = true; settings = { - time = 2.0; + default = { + time = 1.0; + }; }; }; } diff --git a/home/common/programs/hyprland/default.nix b/home/common/programs/hyprland/default.nix index 74941be..e30fbac 100644 --- a/home/common/programs/hyprland/default.nix +++ b/home/common/programs/hyprland/default.nix @@ -6,7 +6,7 @@ in imports = [ ./rofi.nix ./dunst.nix - ./aviso.nix + ./avizo.nix ]; home.packages = with pkgs; [ diff --git a/hosts/arrakis/default.nix b/hosts/arrakis/default.nix index ffd4d43..5bd5e16 100644 --- a/hosts/arrakis/default.nix +++ b/hosts/arrakis/default.nix @@ -12,6 +12,7 @@ in imports = [ ./hardware-configuration.nix ../common/global + ../common/features/laptop.nix ../common/features/networking.nix ../common/features/nvidia.nix ../common/features/wayland.nix diff --git a/hosts/common/features/laptop.nix b/hosts/common/features/laptop.nix new file mode 100644 index 0000000..b3635ff --- /dev/null +++ b/hosts/common/features/laptop.nix @@ -0,0 +1,30 @@ +{ pkgs, ... }: +{ + powerManagement = { + enable = true; + powertop = true; + }; + + services = { + thermald.enable = true; + power-profiles-daemon.enable = false; + + auto-cpufreq = { + enable = true; + settings = { + battery = { + governor = "powersave"; + turbo = "never"; + }; + charger = { + governor = "performance"; + turbo = "auto"; + }; + }; + }; + }; + + environment.systemPackages = with pkgs; [ + brightnessctl + ]; +} diff --git a/hosts/common/features/wayland.nix b/hosts/common/features/wayland.nix index d940ef9..7edda10 100644 --- a/hosts/common/features/wayland.nix +++ b/hosts/common/features/wayland.nix @@ -6,10 +6,6 @@ in { programs.hyprland.enable = true; - environment.systemPackages = with pkgs; [ - brightnessctl - ]; - services.greetd = { enable = true; settings = {