diff --git a/home/programs/graphical/apps/default.nix b/home/programs/graphical/apps/default.nix index a2cb1cb..df8e966 100644 --- a/home/programs/graphical/apps/default.nix +++ b/home/programs/graphical/apps/default.nix @@ -1,5 +1,6 @@ _: { imports = [ ./spotify + ./vesktop ]; } diff --git a/home/programs/graphical/apps/vesktop/default.nix b/home/programs/graphical/apps/vesktop/default.nix new file mode 100644 index 0000000..ead6064 --- /dev/null +++ b/home/programs/graphical/apps/vesktop/default.nix @@ -0,0 +1,34 @@ +{ + lib, + osConfig, + pkgs, + ... +}: let + inherit (lib) mkIf; + + cfg = osConfig.myOptions.home-manager.programs.vesktop; +in { + config = mkIf cfg.enable { + home.packages = with pkgs; [ vesktop ]; + + xdg.configFile = { + "vesktop/settings.json".text = builtins.toJSON { + discordBranch = "stable"; # consider "ptb" + firstLaunch = false; + arRPC = "on"; + splashColor = "rgb(219, 222, 225)"; + splashBackground = "rgb(49, 51, 56)"; + checkUpdates = false; + staticTitle = true; + disableMinSize = true; + minimizeToTray = false; + tray = false; + appBadge = false; + }; + + "autostart/vesktop.desktop" = mkIf cfg.autoStart { + source = "${pkgs.vesktop}/share/applications/vesktop.desktop"; + }; + }; + }; +} diff --git a/hosts/voyager/default.nix b/hosts/voyager/default.nix index 8e98428..2aeb09d 100644 --- a/hosts/voyager/default.nix +++ b/hosts/voyager/default.nix @@ -62,6 +62,7 @@ ".mozilla" ".mullvad" ".config/chromium" + ".config/vesktop" ".local/share/gnupg" ".local/share/zoxide" ".local/share/wakatime" @@ -137,6 +138,10 @@ }; spotify.enable = true; stremio.enable = true; + vesktop = { + enable = true; + autoStart = true; + }; }; }; }; diff --git a/options/home/programs/default.nix b/options/home/programs/default.nix index 594e834..f271c18 100644 --- a/options/home/programs/default.nix +++ b/options/home/programs/default.nix @@ -28,5 +28,9 @@ in spotify.enable = mkEnableOption "Spotify"; stremio.enable = mkEnableOption "Stremio free media center"; + vesktop = { + enable = mkEnableOption "Vesktop (An alternate client for Discord with Vencord built-in)"; + autoStart = mkEnableOption "Auto-Start for Vesktop"; + }; }; }