From d63ff510aa2a6c9f7a1ac75e531002d724abe681 Mon Sep 17 00:00:00 2001 From: Lumpiasty Date: Tue, 5 Aug 2025 21:22:18 +0200 Subject: [PATCH] show battery indicator on laptops --- home-modules/plasma.nix | 1 + hosts/acer.nix | 1 + modules/system/roles.nix | 1 + 3 files changed, 3 insertions(+) diff --git a/home-modules/plasma.nix b/home-modules/plasma.nix index 398dc81..f31e58b 100644 --- a/home-modules/plasma.nix +++ b/home-modules/plasma.nix @@ -51,6 +51,7 @@ "org.kde.plasma.brightness" "org.kde.plasma.volume" "plasmashell_microphone" + (lib.mkIf (osConfig.lumpiasty.laptop == true) "org.kde.plasma.battery") ]; }; }; diff --git a/hosts/acer.nix b/hosts/acer.nix index a6d31f3..a1bbf19 100644 --- a/hosts/acer.nix +++ b/hosts/acer.nix @@ -78,6 +78,7 @@ rec { pointerSpeed = 0.2; accelerationProfile = "default"; }; + laptop = true; }; virtualisation.vmVariant = { diff --git a/modules/system/roles.nix b/modules/system/roles.nix index 3779565..1536845 100644 --- a/modules/system/roles.nix +++ b/modules/system/roles.nix @@ -2,4 +2,5 @@ { options.lumpiasty.pc = lib.mkEnableOption "Enable options specific to personal computers"; + options.lumpiasty.laptop = lib.mkEnableOption "Enable options specific to laptops"; } \ No newline at end of file