Commit 6bca38d

HPCesia <me@hpcesia.com>
2025-12-21 11:29:44
feat: update noclatia config
1 parent 67d8e99
Changed files (2)
modules
desktop
desktop-environment
discrete
modules/desktop/desktop-environment/discrete/shell/noctalia/bar.nix
@@ -39,7 +39,10 @@
             showUnreadBadge = true;
           }
           {id = "Volume";}
-          {id = "Battery";}
+          {
+            id = "Battery";
+            showNoctaliaPerformance = true;
+          }
           {
             id = "Clock";
             formatHorizontal = "yyyy年M月d日 HH:mm";
modules/desktop/desktop-environment/discrete/shell/noctalia/default.nix
@@ -1,4 +1,8 @@
-{inputs, ...}: {
+{
+  inputs,
+  lib,
+  ...
+}: {
   flake.modules.nixos.de-shell-noctalia = {...}: {
     imports = [inputs.noctalia.nixosModules.default];
 
@@ -7,7 +11,11 @@
     };
   };
 
-  flake.modules.homeManager.de-shell-noctalia = {config, ...}: {
+  flake.modules.homeManager.de-shell-noctalia = {
+    config,
+    osConfig,
+    ...
+  }: {
     imports = [inputs.noctalia.homeModules.default];
 
     programs.noctalia-shell = {
@@ -29,8 +37,10 @@
         appLauncher = {
           backgroundOpacity = config.stylix.opacity.popups;
           enableClipboardHistory = config.services.cliphist.enable;
-          useApp2Unit = true;
+          useApp2Unit = lib.mkIf (!osConfig.programs.niri.enable or true) true;
           terminalCommand = "ghostty -e";
+          customLaunchPrefixEnabled = lib.mkIf (osConfig.programs.niri.enable or false) true;
+          customLaunchPrefix = lib.mkIf (osConfig.programs.niri.enable or false) "niri msg action spawn --";
         };
         notifications = {
           lowUrgencyDuration = 3;