Skip to content

Commit

Permalink
refactor(apps): switch discord client to canary branch instead of `…
Browse files Browse the repository at this point in the history
…vesktop`
  • Loading branch information
zakuciael committed Dec 2, 2024
1 parent 8ad75a3 commit d63587f
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions modules/desktop/apps/discord.nix
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,12 @@
username,
desktop,
...
}:
with lib;
with lib.my;
with lib.my.utils; let
pkg = pkgs.vesktop;
}: let
inherit (lib) getExe mkIf;
inherit (lib.my.utils) findLayoutConfig findLayoutWorkspace;
pkg = pkgs.discord-canary.override {
withOpenASAR = true;
};
leftLayout = findLayoutConfig config ({name, ...}: name == "left"); # Try and find left monitor
# Left monitor or main if not found
layout =
Expand All @@ -21,10 +22,10 @@ with lib.my.utils; let
if leftLayout != null
then findLayoutWorkspace layout ({default, ...}: default)
else findLayoutWorkspace layout ({last, ...}: last);
class = "^(vesktop)$";
class = "^(discord)$";
in {
modules.desktop.wm.${desktop}.autostartPrograms = [
"${pkg}/bin/vesktop"
"${getExe pkg}"
];

home-manager.users.${username} = {
Expand Down

0 comments on commit d63587f

Please sign in to comment.