Commit a580227
Changed files (3)
home
linux
gui
plasma
options
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;
+ };
+ };
+}