xdg: Only hide desktop icons on phone

It turns out that doing this breaks thunar and possibly some other
stuff, so we'll only hide them on the PinePhone with Phosh.
This commit is contained in:
Donovan Glover 2024-08-08 21:38:09 -04:00
parent add2c126fe
commit 6e5c2c606b
No known key found for this signature in database
GPG Key ID: EA7408A77AE1BE65
2 changed files with 25 additions and 42 deletions

View File

@ -2,51 +2,9 @@
let
inherit (config.home) homeDirectory;
no = {
name = "";
settings = {
Hidden = "true";
};
};
in
{
xdg = {
desktopEntries = {
htop = no;
fish = no;
nvim = no;
yazi = no;
gcdemu = no;
tectonic = no;
mullvad-vpn = no;
nixos-manual = no;
image-analyzer = no;
activate-linux = no;
thunar-settings = no;
thunar-bulk-rename = no;
thunar-volman-settings = no;
fcitx5-configtool = no;
base = no;
calc = no;
draw = no;
math = no;
writer = no;
impress = no;
startcenter = no;
"org.fcitx.Fcitx5" = no;
"org.fcitx.fcitx5-migrator" = no;
"org.gnome.Extensions" = no;
"org.pwmt.zathura" = no;
"org.gnome.eog" = no;
"org.gnome.Settings" = no;
"org.sigxcpu.Livi" = no;
};
userDirs = {
enable = true;
createDirectories = true;

View File

@ -19,6 +19,13 @@ let
''rgba(${getColorCh color "r"}, ${getColorCh color "g"}, ${getColorCh color "b"}, ${transparency})'';
bg = ''linear-gradient(${rgba "base00" "0.7"}, ${rgba "base00" "0.7"})'';
no = {
name = "";
settings = {
Hidden = "true";
};
};
in
{
imports = attrValues self.nixosModules;
@ -41,6 +48,24 @@ in
xresources
;
xdg.desktopEntries = {
htop = no;
fish = no;
nvim = no;
yazi = no;
gcdemu = no;
mullvad-vpn = no;
nixos-manual = no;
image-analyzer = no;
activate-linux = no;
"org.gnome.Extensions" = no;
"org.pwmt.zathura" = no;
"org.gnome.eog" = no;
"org.gnome.Settings" = no;
"org.sigxcpu.Livi" = no;
};
config = {
programs.man.generateCaches = mkForce false;