Ran nix fmt against nixfmt-rfc-style

This commit is contained in:
William 2024-09-23 11:54:59 -03:00
parent 43e53f8fb2
commit 8bcd4fc6b8
62 changed files with 784 additions and 287 deletions

View file

@ -1,8 +1,11 @@
{ lib, pkgs, ... }:
let
mkWebApp = webAppName: webAppLink: webAppIconLink: webAppIconHash:
let name = lib.strings.replaceStrings [ " " ] [ "" ] webAppName;
in pkgs.makeDesktopItem {
mkWebApp =
webAppName: webAppLink: webAppIconLink: webAppIconHash:
let
name = lib.strings.replaceStrings [ " " ] [ "" ] webAppName;
in
pkgs.makeDesktopItem {
inherit name;
icon = pkgs.fetchurl {
url = webAppIconLink;
@ -12,15 +15,25 @@ let
categories = [ "Network" ];
startupNotify = true;
startupWMClass = "chrome-${
lib.strings.replaceStrings [ "https://" "/" ] [ "" "" ] webAppLink
}__-Default";
exec =
"${pkgs.ungoogled-chromium}/bin/chromium --no-first-run --no-default-browser-check --no-crash-upload --app=${webAppLink} --class=${name}";
lib.strings.replaceStrings
[
"https://"
"/"
]
[
""
""
]
webAppLink
}__-Default";
exec = "${pkgs.ungoogled-chromium}/bin/chromium --no-first-run --no-default-browser-check --no-crash-upload --app=${webAppLink} --class=${name}";
};
in {
in
{
home.packages = [
(mkWebApp "YT Music" "https://music.youtube.com"
"https://raw.githubusercontent.com/vinceliuice/Qogir-icon-theme/fff0c7f3747b9b9ddf94c6f997847d47896097c2/src/scalable/apps/youtube-music.svg"
"sha256-T+v2JOOW+nEwH/9W2PFOrw/315/bCoKHw01KNh2U8IE=")
"sha256-T+v2JOOW+nEwH/9W2PFOrw/315/bCoKHw01KNh2U8IE="
)
];
}