From 6b7c52289c8b5629e317d27841f6c26763f08c35 Mon Sep 17 00:00:00 2001 From: Donovan Glover Date: Wed, 24 Jul 2024 17:11:11 -0400 Subject: [PATCH] Reapply "xdg: Hide desktop entries with home-manager" This is actually useful to create a minimal phone configuration and we can optimize this further. --- home/xdg-user-dirs.nix | 55 ++++++++++++++++++++++++++++++++---------- 1 file changed, 42 insertions(+), 13 deletions(-) diff --git a/home/xdg-user-dirs.nix b/home/xdg-user-dirs.nix index 5e63e308..31c69717 100644 --- a/home/xdg-user-dirs.nix +++ b/home/xdg-user-dirs.nix @@ -4,20 +4,49 @@ let inherit (config.home) homeDirectory; in { - xdg.userDirs = { - enable = true; - createDirectories = true; + xdg = { + desktopEntries = { + htop = { + name = "htop"; + noDisplay = true; + }; - desktop = null; - templates = null; - publicShare = null; + fish = { + name = "fish"; + noDisplay = true; + }; - download = "${homeDirectory}/ダウンロード"; - documents = "${homeDirectory}/ドキュメント"; - music = "${homeDirectory}/音楽"; - pictures = "${homeDirectory}/画像"; - videos = "${homeDirectory}/ビデオ"; + nvim = { + name = "nvim"; + noDisplay = true; + }; + + yazi = { + name = "yazi"; + noDisplay = true; + }; + + tectonic = { + name = "tectonic"; + noDisplay = true; + }; + }; + + userDirs = { + enable = true; + createDirectories = true; + + desktop = null; + templates = null; + publicShare = null; + + download = "${homeDirectory}/ダウンロード"; + documents = "${homeDirectory}/ドキュメント"; + music = "${homeDirectory}/音楽"; + pictures = "${homeDirectory}/画像"; + videos = "${homeDirectory}/ビデオ"; + }; + + configFile."user-dirs.locale".text = "ja_JP"; }; - - xdg.configFile."user-dirs.locale".text = "ja_JP"; }