Commit a580227

HPCesia <me@hpcesia.com>
2025-06-07 20:48:35
feat(plasma): update config
1 parent 39cdf12
Changed files (3)
home
linux
hosts
chaser-kevin
home/linux/gui/plasma/options/appearance.nix
@@ -0,0 +1,17 @@
+{
+  pkgs,
+  config,
+  ...
+}: let
+  catppuccin-kde = pkgs.catppuccin-kde.override {
+    flavour = [config.catppuccin.flavor];
+    accents = [config.catppuccin.accent];
+  };
+in {
+  home.packages = [catppuccin-kde];
+
+  programs.plasma.workspace = {
+    theme = "breeze-dark";
+    colorScheme = "CatppuccinMacchiatoMauve";
+  };
+}
home/linux/gui/plasma/options/powerdevil.nix
@@ -0,0 +1,17 @@
+{...}: {
+  # AC is compatible for all hosts
+  programs.plasma.powerdevil.AC = {
+    powerProfile = "performance";
+    # Auto Power Save
+    autoSuspend.action = "nothing";
+    turnOffDisplay = {
+      idleTimeout = 14400;
+      idleTimeoutWhenLocked = 600;
+    };
+    dimDisplay.enable = false;
+    # Actions
+    whenLaptopLidClosed = "sleep";
+    whenSleepingEnter = "standby";
+    powerButtonAction = "hibernate";
+  };
+}
hosts/chaser-kevin/home.nix
@@ -1,1 +1,48 @@
-{...}: {}
+{...}: {
+  # Power Control
+  programs.plasma.powerdevil = {
+    AC.inhibitLidActionWhenExternalMonitorConnected = true;
+    battery = {
+      powerProfile = "powerSaving";
+      # Auto Power Save
+      autoSuspend = {
+        action = "sleep";
+        idleTimeout = 600;
+      };
+      turnOffDisplay = {
+        idleTimeout = 360;
+        idleTimeoutWhenLocked = 120;
+      };
+      dimDisplay = {
+        enable = true;
+        idleTimeout = 120;
+      };
+      # Actions
+      whenLaptopLidClosed = "hibernate";
+      whenSleepingEnter = "standbyThenHibernate";
+      powerButtonAction = "shutDown";
+      inhibitLidActionWhenExternalMonitorConnected = true;
+    };
+    lowBattery = {
+      powerProfile = "powerSaving";
+      # Auto Power Save
+      autoSuspend = {
+        action = "sleep";
+        idleTimeout = 300;
+      };
+      turnOffDisplay = {
+        idleTimeout = 180;
+        idleTimeoutWhenLocked = 60;
+      };
+      dimDisplay = {
+        enable = true;
+        idleTimeout = 60;
+      };
+      # Actions
+      whenLaptopLidClosed = "hibernate";
+      whenSleepingEnter = "standbyThenHibernate";
+      powerButtonAction = "shutDown";
+      inhibitLidActionWhenExternalMonitorConnected = true;
+    };
+  };
+}