mirror of
https://github.com/nix-community/home-manager.git
synced 2026-11-01 09:39:59 +00:00
67 lines
1.7 KiB
Nix
67 lines
1.7 KiB
Nix
{ pkgs, ... }:
|
|
let
|
|
configDir =
|
|
if pkgs.stdenv.hostPlatform.isDarwin then
|
|
"home-files/Library/Application Support/vesktop"
|
|
else
|
|
"home-files/.config/vesktop";
|
|
in
|
|
{
|
|
config = {
|
|
programs.vesktop = {
|
|
enable = true;
|
|
settings = {
|
|
tray = false;
|
|
minimizeToTray = false;
|
|
hardwareAcceleration = true;
|
|
customTitleBar = false;
|
|
staticTitle = true;
|
|
discordBranch = "stable";
|
|
};
|
|
vencord = {
|
|
themes.my_theme = ''
|
|
.privateChannels_f0963d::after {
|
|
content: "";
|
|
position: absolute;
|
|
width: 100%;
|
|
height: 100%;
|
|
top: 0;
|
|
left: 0;
|
|
z-index: 1000;
|
|
background: linear-gradient(to bottom, transparent 85%, var(--base00));
|
|
pointer-events: none;
|
|
}
|
|
'';
|
|
settings = {
|
|
autoUpdate = false;
|
|
autoUpdateNotification = false;
|
|
notifyAboutUpdates = false;
|
|
useQuickCss = true;
|
|
disableMinSize = true;
|
|
plugins = {
|
|
MessageLogger = {
|
|
enabled = true;
|
|
ignoreSelf = true;
|
|
};
|
|
FakeNitro.enabled = true;
|
|
};
|
|
};
|
|
};
|
|
};
|
|
|
|
nmt.script = ''
|
|
configDir="${configDir}"
|
|
|
|
assertFileExists "$configDir/settings.json"
|
|
assertFileContent "$configDir/settings.json" \
|
|
${./basic-settings.json}
|
|
assertFileExists "$configDir/settings/settings.json"
|
|
assertFileContent "$configDir/settings/settings.json" \
|
|
${./basic-vencord-settings.json}
|
|
assertFileExists "$configDir/themes/my_theme.css"
|
|
assertFileContent "$configDir/themes/my_theme.css" \
|
|
${./basic-theme.css}
|
|
'';
|
|
};
|
|
}
|