Move from chrome to firefox

This commit is contained in:
Filippo Berto 2023-11-09 14:24:55 +01:00
parent ab810d2dc8
commit 27bc06b6ea
Signed by: bertof
GPG key ID: 9DBF7E6A1D2CE9ED
3 changed files with 7 additions and 7 deletions

View file

@ -30,7 +30,7 @@
# evolution
gallery-dl
geeqie
google-chrome
# google-chrome
gucharmap
handbrake
httpie
@ -104,7 +104,7 @@
../../modules/hm/dunst.nix
# ../../modules/hm/dwarf-fortress.nix
../../modules/hm/easyeffects.nix
# ../../modules/hm/firefox.nix
../../modules/hm/firefox.nix
# ../../modules/hm/fonts.nix
# ../../modules/hm/gnome_shell.nix
# ../../modules/hm/grobi.nix

View file

@ -33,7 +33,7 @@
filelight
gallery-dl
geeqie
google-chrome
# google-chrome
gucharmap
handbrake
httpie
@ -96,7 +96,7 @@
../../modules/hm/dunst.nix
# ../../modules/hm/dwarf-fortress.nix
../../modules/hm/easyeffects.nix
# ../../modules/hm/firefox.nix
../../modules/hm/firefox.nix
../../modules/hm/fonts.nix
# ../../modules/hm/gnome_shell.nix
# ../../modules/hm/grobi.nix

View file

@ -1,13 +1,13 @@
{ pkgs, lib, ... }:
# Categories: https://specifications.freedesktop.org/menu-spec/latest/apa.html#main-category-registry
let
chrome-cmd = link: "${pkgs.google-chrome}/bin/google-chrome-stable --app=${link}";
# firefox-cmd = link: "firefox --new-window ${link}";
# chrome-cmd = link: "${pkgs.google-chrome}/bin/google-chrome-stable --app=${link}";
firefox-cmd = link: "firefox --new-window ${link}";
webAppBuilder =
{ desktopName
, name ? builtins.replaceStrings [ " " ] [ "_" ] desktopName
, link
, cmd ? chrome-cmd
, cmd ? firefox-cmd
, icon ? lib.toLower name
, comment ? null
, categories ? [ "Network" ]