move the launch scripts of discord and spotify

This commit is contained in:
Noa Aarts 2024-03-01 16:34:21 +01:00
parent 1d13143751
commit 9896e01617
3 changed files with 35 additions and 21 deletions

18
common/discord.nix Normal file
View file

@ -0,0 +1,18 @@
{ config, pkgs, inputs, ... }:
{
home.packages = with pkgs; [
(symlinkJoin {
name = "discord";
paths = [
(writeShellScriptBin "discord" ''
exec ${discord}/bin/discord --enable-features=UseOzonePlatform --ozone-platform=wayland
'')
(writeShellScriptBin "Discord" ''
exec ${discord}/bin/Discord --enable-features=UseOzonePlatform --ozone-platform=wayland
'')
discord
];
})
];
}