ctucx.git: nixfiles

ctucx' nixfiles

commit 85c79c7493eb85600ff5806535b68d3333ac55b7
parent 8b6c16c2695fd53daf5e3a6f89c92de7abb46311
Author: Leah (ctucx) <leah@ctu.cx>
Date: Wed, 12 Jan 2022 17:36:31 +0100

programs/htop: replace overlay with hidden desktop-entry
1 file changed, 16 insertions(+), 8 deletions(-)
M
configurations/programs/cli/htop.nix
|
24
++++++++++++++++--------
diff --git a/configurations/programs/cli/htop.nix b/configurations/programs/cli/htop.nix
@@ -1,14 +1,6 @@
 { pkgs, ... }:
 
 {
-  nixpkgs.overlays = [(self: super: {
-    htop = super.htop.overrideAttrs(oldAttrs: {
-      postInstall = ''
-        rm $out/share/applications/htop.desktop
-      '';
-    });
-  })];
-
   home-manager.users.leah = {
     programs = {
       htop = {

@@ -21,5 +13,21 @@
         };
       };
     };
+
+    xdg = {
+      desktopEntries = {
+        htop = {
+          name        = "Htop";
+          genericName = "Process Viewer";
+          icon        = "htop";
+          exec        = "htop";
+          terminal    = true;
+          categories  = [ "ConsoleOnly" "System" ];
+          settings    = {
+            NoDisplay = "true";
+          };
+        };
+      };
+    };
   };
 }