move the launch scripts of discord and spotify
This commit is contained in:
parent
1d13143751
commit
9896e01617
3 changed files with 35 additions and 21 deletions
18
common/discord.nix
Normal file
18
common/discord.nix
Normal 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
|
||||||
|
];
|
||||||
|
})
|
||||||
|
];
|
||||||
|
}
|
||||||
15
common/spotify.nix
Normal file
15
common/spotify.nix
Normal file
|
|
@ -0,0 +1,15 @@
|
||||||
|
{ config, pkgs, inputs, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
home.packages = with pkgs; [
|
||||||
|
(symlinkJoin {
|
||||||
|
name = "spotify";
|
||||||
|
paths = [
|
||||||
|
(writeShellScriptBin "spotify" ''
|
||||||
|
exec ${spotify}/bin/spotify --enable-features=UseOzonePlatform --ozone-platform=wayland
|
||||||
|
'')
|
||||||
|
spotify
|
||||||
|
];
|
||||||
|
})
|
||||||
|
];
|
||||||
|
}
|
||||||
|
|
@ -8,6 +8,8 @@
|
||||||
../../common/hyprland.nix
|
../../common/hyprland.nix
|
||||||
../../common/git.nix
|
../../common/git.nix
|
||||||
../../common/nvim/nvim.nix
|
../../common/nvim/nvim.nix
|
||||||
|
../../common/discord.nix
|
||||||
|
../../common/spotify.nix
|
||||||
];
|
];
|
||||||
# Home Manager needs a bit of information about you and the paths it should
|
# Home Manager needs a bit of information about you and the paths it should
|
||||||
# manage.
|
# manage.
|
||||||
|
|
@ -36,30 +38,9 @@
|
||||||
mtr
|
mtr
|
||||||
|
|
||||||
firefox
|
firefox
|
||||||
(symlinkJoin {
|
|
||||||
name = "spotify";
|
|
||||||
paths = [
|
|
||||||
(writeShellScriptBin "spotify" ''
|
|
||||||
exec ${spotify}/bin/spotify --enable-features=UseOzonePlatform --ozone-platform=wayland
|
|
||||||
'')
|
|
||||||
spotify
|
|
||||||
];
|
|
||||||
})
|
|
||||||
|
|
||||||
|
|
||||||
dconf
|
dconf
|
||||||
(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
|
|
||||||
];
|
|
||||||
})
|
|
||||||
pipewire
|
pipewire
|
||||||
lsd
|
lsd
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue