diff --git a/common/discord.nix b/common/discord.nix new file mode 100644 index 0000000..c367db3 --- /dev/null +++ b/common/discord.nix @@ -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 + ]; + }) + ]; +} diff --git a/common/spotify.nix b/common/spotify.nix new file mode 100644 index 0000000..0ab35bf --- /dev/null +++ b/common/spotify.nix @@ -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 + ]; + }) + ]; +} diff --git a/hosts/default/home.nix b/hosts/default/home.nix index 18347f8..5fbf680 100644 --- a/hosts/default/home.nix +++ b/hosts/default/home.nix @@ -8,6 +8,8 @@ ../../common/hyprland.nix ../../common/git.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 # manage. @@ -36,30 +38,9 @@ mtr firefox - (symlinkJoin { - name = "spotify"; - paths = [ - (writeShellScriptBin "spotify" '' - exec ${spotify}/bin/spotify --enable-features=UseOzonePlatform --ozone-platform=wayland - '') - spotify - ]; - }) 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 lsd