nix-config/home/xdg-desktop-entries.nix
Donovan Glover 4b5d240ebd
meta(home-manager): Determine isPhone from nixosConfig
Simplifies things a bit since we no longer depend on a phone variable,
thus making the individual files easier to copy/paste.
2024-09-08 23:14:43 -04:00

35 lines
585 B
Nix

{ lib, nixosConfig, ... }:
let
inherit (lib) mkIf;
isPhone = nixosConfig.programs.calls.enable;
no = {
name = "";
settings.Hidden = "true";
};
in
{
xdg.desktopEntries = mkIf isPhone {
anki = no;
htop = no;
fish = no;
nvim = no;
yazi = no;
qt5ct = no;
qt6ct = no;
gcdemu = no;
nixos-manual = no;
image-analyzer = no;
kvantummanager = no;
chromium-browser = no;
"org.gnome.Extensions" = no;
"org.pwmt.zathura" = no;
"org.gnome.eog" = no;
"org.gnome.Settings" = no;
"org.sigxcpu.Livi" = no;
};
}