Switch from firefox to chrome

This commit is contained in:
Filippo Berto 2023-10-12 09:14:28 +02:00
parent 0d02437fd6
commit 3595f3f517
No known key found for this signature in database
GPG key ID: FE98AE5EC52B1056
3 changed files with 23 additions and 21 deletions

View file

@ -105,7 +105,7 @@
../../modules/hm/dunst.nix ../../modules/hm/dunst.nix
# ../../modules/hm/dwarf-fortress.nix # ../../modules/hm/dwarf-fortress.nix
../../modules/hm/easyeffects.nix ../../modules/hm/easyeffects.nix
../../modules/hm/firefox.nix # ../../modules/hm/firefox.nix
# ../../modules/hm/fonts.nix # ../../modules/hm/fonts.nix
# ../../modules/hm/gnome_shell.nix # ../../modules/hm/gnome_shell.nix
# ../../modules/hm/grobi.nix # ../../modules/hm/grobi.nix

View file

@ -97,7 +97,7 @@
../../modules/hm/dunst.nix ../../modules/hm/dunst.nix
# ../../modules/hm/dwarf-fortress.nix # ../../modules/hm/dwarf-fortress.nix
../../modules/hm/easyeffects.nix ../../modules/hm/easyeffects.nix
../../modules/hm/firefox.nix # ../../modules/hm/firefox.nix
../../modules/hm/fonts.nix ../../modules/hm/fonts.nix
# ../../modules/hm/gnome_shell.nix # ../../modules/hm/gnome_shell.nix
# ../../modules/hm/grobi.nix # ../../modules/hm/grobi.nix

View file

@ -1,14 +1,27 @@
{ pkgs, lib, ... }: { pkgs, lib, ... }:
# Categories: https://specifications.freedesktop.org/menu-spec/latest/apa.html#main-category-registry # Categories: https://specifications.freedesktop.org/menu-spec/latest/apa.html#main-category-registry
let let
# cmd = link: "${pkgs.google-chrome}/bin/google-chrome-stable --app=${link}"; chrome-cmd = link: "${pkgs.google-chrome}/bin/google-chrome-stable --app=${link}";
cmd = link: "firefox --new-window ${link}"; # firefox-cmd = link: "firefox --new-window ${link}";
webAppBuilder =
{ desktopName
, name ? builtins.replaceStrings [ " " ] [ "_" ] desktopName
, link
, cmd ? chrome-cmd
, icon ? lib.toLower name
, comment ? null
, categories ? [ "Network" ]
}:
pkgs.makeDesktopItem {
inherit name icon desktopName comment categories;
exec = cmd link;
};
links = [ links = [
# { {
# desktopName = "Microsoft Teams"; desktopName = "Microsoft Teams";
# link = "https://teams.microsoft.com"; link = "https://teams.microsoft.com";
# categories = [ "Office" ]; categories = [ "Office" ];
# } }
{ {
desktopName = "Chess.com"; desktopName = "Chess.com";
link = "https://chess.com"; link = "https://chess.com";
@ -80,17 +93,6 @@ let
categories = [ "AudioVideo" ]; categories = [ "AudioVideo" ];
} }
]; ];
webAppBuilder =
{ desktopName
, name ? builtins.replaceStrings [ " " ] [ "_" ] desktopName
, link
, icon ? lib.toLower name
, comment ? null
, categories ? [ "Network" ]
}:
pkgs.makeDesktopItem {
inherit name icon desktopName comment categories;
exec = cmd link;
};
in in
{ home.packages = map webAppBuilder links; } { home.packages = map webAppBuilder links; }