diff --git a/modules/twitch.nix b/modules/twitch.nix new file mode 100644 index 0000000..40afb98 --- /dev/null +++ b/modules/twitch.nix @@ -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 + ]; +} diff --git a/modules/youtube.nix b/modules/youtube.nix new file mode 100644 index 0000000..d82229a --- /dev/null +++ b/modules/youtube.nix @@ -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 + ]; +} diff --git a/odin.nix b/odin.nix index 60deb1b..92cf76e 100644 --- a/odin.nix +++ b/odin.nix @@ -169,9 +169,11 @@ ./modules/syncthing.nix ./modules/terminator.nix ./modules/tmux.nix + ./modules/twitch.nix ./modules/update_background.nix ./modules/whatsapp.nix # ./modules/xidlehook.nix + ./modules/youtube.nix ./modules/zoxide.nix ./modules/zsh.nix diff --git a/thor.nix b/thor.nix index c376f24..ba9816d 100644 --- a/thor.nix +++ b/thor.nix @@ -168,9 +168,11 @@ ./modules/syncthing.nix ./modules/terminator.nix ./modules/tmux.nix + ./modules/twitch.nix ./modules/update_background.nix ./modules/whatsapp.nix # ./modules/xidlehook.nix + ./modules/youtube.nix ./modules/zoxide.nix ./modules/zsh.nix