Switch to Vivaldi

This commit is contained in:
Filippo Berto 2024-01-19 09:54:38 +01:00
parent 4609ec520e
commit 4c2253a42e
No known key found for this signature in database
GPG key ID: FE98AE5EC52B1056
4 changed files with 8 additions and 2 deletions

View file

@ -106,6 +106,7 @@
# ../../modules/hm/dwarf-fortress.nix
../../modules/hm/easyeffects.nix
../../modules/hm/firefox.nix
../../modules/hm/vivaldi.nix
# ../../modules/hm/fonts.nix
# ../../modules/hm/gnome_shell.nix
# ../../modules/hm/grobi.nix

View file

@ -94,6 +94,7 @@
# ../../modules/hm/dwarf-fortress.nix
../../modules/hm/easyeffects.nix
../../modules/hm/firefox.nix
../../modules/hm/vivaldi.nix
../../modules/hm/fonts.nix
# ../../modules/hm/gnome_shell.nix
# ../../modules/hm/grobi.nix

3
modules/hm/vivaldi.nix Normal file
View file

@ -0,0 +1,3 @@
{ pkgs, ... }: {
home.packages = [ pkgs.vivaldi pkgs.vivaldi-ffmpeg-codecs ];
}

View file

@ -2,12 +2,13 @@
# 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}";
vivaldi-cmd = link: "${pkgs.vivaldi}/bin/vivaldi --app=${link}";
# firefox-cmd = link: "firefox --new-window ${link}";
webAppBuilder =
{ desktopName
, name ? builtins.replaceStrings [ " " ] [ "_" ] desktopName
, link
, cmd ? firefox-cmd
, cmd ? vivaldi-cmd
, icon ? lib.toLower name
, comment ? null
, categories ? [ "Network" ]