mirror of
https://github.com/ItsDrike/nixdots
synced 2025-06-30 00:30:41 +00:00
Add vesktop
This commit is contained in:
parent
f726805e5c
commit
d3a40dd759
4 changed files with 44 additions and 0 deletions
|
@ -1,5 +1,6 @@
|
|||
_: {
|
||||
imports = [
|
||||
./spotify
|
||||
./vesktop
|
||||
];
|
||||
}
|
||||
|
|
34
home/programs/graphical/apps/vesktop/default.nix
Normal file
34
home/programs/graphical/apps/vesktop/default.nix
Normal file
|
@ -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";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue