YouTube and Twitch web apps

This commit is contained in:
Filippo Berto 2021-11-08 13:00:13 +01:00
parent 6fca8285eb
commit 9e360d3a49
4 changed files with 46 additions and 0 deletions

21
modules/twitch.nix Normal file
View file

@ -0,0 +1,21 @@
{ pkgs, ... }:
with pkgs;
let
link = "https://twitch.com";
cmd = "${google-chrome}/bin/google-chrome-stable --app=${link}";
desktopItem = pkgs.makeDesktopItem
{
name = "Twitch";
type = "Application";
exec = cmd;
icon = "twitch";
desktopName = "Twitch";
comment = "Twitch web client";
categories = "Office;";
};
in
{
home.packages = [
desktopItem
];
}

21
modules/youtube.nix Normal file
View file

@ -0,0 +1,21 @@
{ pkgs, ... }:
with pkgs;
let
link = "https://youtube.com";
cmd = "${google-chrome}/bin/google-chrome-stable --app=${link}";
desktopItem = pkgs.makeDesktopItem
{
name = "YouTube";
type = "Application";
exec = cmd;
icon = "youtube";
desktopName = "YouTube";
comment = "YouTube web client";
categories = "Office;";
};
in
{
home.packages = [
desktopItem
];
}