use package from the module in the ff desktop entries

This commit is contained in:
jacekpoz 2024-09-09 18:49:00 +02:00
parent dedf83a78f
commit ebef7ddd6b
Signed by: poz
SSH key fingerprint: SHA256:JyLeVWE4bF3tDnFeUpUaJsPsNlJyBldDGV/dIKSLyN8

View file

@ -72,11 +72,13 @@ in {
};
home-manager.users.${username} = {
xdg.desktopEntries = {
xdg.desktopEntries = let
pkg = config.home-manager.users.${username}.programs.firefox.package;
in {
firefox-schizo = {
name = "Firefox Schizo";
genericName = "Web Browser";
exec = "${getExe pkgs.firefox-devedition-bin} --name firefox-schizo -P schizo %U";
exec = "${getExe pkg} --name firefox-schizo -P schizo %U";
icon = "${logo}";
terminal = false;
categories = [ "Network" "WebBrowser" ];
@ -90,7 +92,7 @@ in {
firefox-unschizo = {
name = "Firefox Unschizo";
genericName = "Web Browser";
exec = "${getExe pkgs.firefox-devedition-bin} --name firefox-unschizo -P unschizo %U";
exec = "${getExe pkg} --name firefox-unschizo -P unschizo %U";
icon = "${logo}";
terminal = false;
categories = [ "Network" "WebBrowser" ];