nix-native config for discord/vesktop
This commit is contained in:
parent
10dc026185
commit
e18d4b2770
4 changed files with 422 additions and 41 deletions
70
home/graphical/discord/default.nix
Normal file
70
home/graphical/discord/default.nix
Normal file
|
|
@ -0,0 +1,70 @@
|
|||
{ config, pkgs, ... }:
|
||||
|
||||
let
|
||||
catppuccin-discord = pkgs.fetchurl {
|
||||
url = "https://catppuccin.github.io/discord/dist/catppuccin-${config.catppuccin.flavor}-${config.catppuccin.accent}.theme.css";
|
||||
sha256 = "sha256-bMxCPo7vg+iHXspsVnrboonlUvkShk5l+gqFIbAxd0o=";
|
||||
};
|
||||
|
||||
mergedThemes = pkgs.runCommand "mergedConfig" { } ''
|
||||
mkdir -p $out
|
||||
cp ${catppuccin-discord} $out/catppuccin.css
|
||||
'';
|
||||
|
||||
vesktopSettings = {
|
||||
discordBranch = "stable";
|
||||
minimizeToTray = true;
|
||||
arRPC = true;
|
||||
splashColor = "${pkgs.catppuccin.rgb.${config.catppuccin.flavor}.text}";
|
||||
splashBackground = "${pkgs.catppuccin.rgb.${config.catppuccin.flavor}.base}";
|
||||
spellCheckLanguages = [
|
||||
"en-US"
|
||||
"en"
|
||||
];
|
||||
disableMinSize = true;
|
||||
};
|
||||
|
||||
stateConfig = {
|
||||
firstLaunch = false;
|
||||
windowBounds = {
|
||||
x = 0;
|
||||
y = 0;
|
||||
width = 853;
|
||||
height = 1071;
|
||||
};
|
||||
};
|
||||
in
|
||||
{
|
||||
home.packages = with pkgs; [ vesktop ];
|
||||
|
||||
home.file.".config/vesktop/settings.json" = {
|
||||
text = builtins.toJSON vesktopSettings;
|
||||
force = true;
|
||||
};
|
||||
|
||||
home.file.".config/vesktop/settings/settings.json" = {
|
||||
text = builtins.toJSON (import ./vencord.nix);
|
||||
force = true;
|
||||
};
|
||||
|
||||
home.file.".config/vesktop/settings/quickCss.css" = {
|
||||
text = ''
|
||||
* {
|
||||
font-family: "${config.userOptions.fontSans.name}" !important;
|
||||
font-size: ${toString config.userOptions.fontSans.size}px;
|
||||
}
|
||||
'';
|
||||
force = true;
|
||||
};
|
||||
|
||||
home.file.".config/vesktop/state.json" = {
|
||||
text = builtins.toJSON stateConfig;
|
||||
force = true;
|
||||
};
|
||||
|
||||
home.file.".config/vesktop/themes" = {
|
||||
source = mergedThemes;
|
||||
recursive = true;
|
||||
force = true;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue