ctucx.git: nixfiles

ctucx' nixfiles

commit 36a527be22ba1e815934c075c57b2c6fe4124fbb
parent ce627ff71e421e488c2ed6ae87e7f94f3e384e59
Author: Leah (ctucx) <git@ctu.cx>
Date: Tue, 29 Oct 2024 14:46:34 +0100

configurations/common/gpg: hide desktop entry for pcscd's `gscriptor` program
1 file changed, 12 insertions(+), 1 deletion(-)
diff --git a/configurations/common/programs/gpg.nix b/configurations/common/programs/gpg.nix
@@ -18,7 +18,18 @@ in {
       dbus.packages = (if pkgs.stdenv.isLinux then (with pkgs; [ gcr ]) else []);
     };
 
-    home-manager.users.leah = {
+    home-manager.users.leah = lib.mkIf pkgs.stdenv.isLinux {
+      xdg = {
+        desktopEntries = {
+          gscriptor = {
+            name        = "gscriptor";
+            settings    = {
+              NoDisplay = "true";
+            };
+          };
+        };
+      };
+
       home = {
         packages = lib.mkIf pkgs.stdenv.isLinux [ pkgs.pcsctools ];