vesktop: add test case
This commit is contained in:
parent
a70813e377
commit
499cfd5abd
|
@ -214,6 +214,7 @@ in import nmtSrc {
|
||||||
./modules/programs/terminator
|
./modules/programs/terminator
|
||||||
./modules/programs/thunderbird
|
./modules/programs/thunderbird
|
||||||
./modules/programs/tofi
|
./modules/programs/tofi
|
||||||
|
./modules/programs/vesktop
|
||||||
./modules/programs/waybar
|
./modules/programs/waybar
|
||||||
./modules/programs/wlogout
|
./modules/programs/wlogout
|
||||||
./modules/programs/wofi
|
./modules/programs/wofi
|
||||||
|
|
59
tests/modules/programs/vesktop/basic-configuration.nix
Normal file
59
tests/modules/programs/vesktop/basic-configuration.nix
Normal file
|
@ -0,0 +1,59 @@
|
||||||
|
{ config, pkgs, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
config = {
|
||||||
|
programs.vesktop = {
|
||||||
|
enable = true;
|
||||||
|
settings = {
|
||||||
|
tray = false;
|
||||||
|
minimizeToTray = false;
|
||||||
|
hardwareAcceleration = true;
|
||||||
|
customTitleBar = false;
|
||||||
|
staticTitle = true;
|
||||||
|
discordBranch = "stable";
|
||||||
|
};
|
||||||
|
vencord = {
|
||||||
|
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=home-files/.config/vesktop
|
||||||
|
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/theme.css
|
||||||
|
assertFileContent $configDir/themes/theme.css \
|
||||||
|
${./basic-theme.css}
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
}
|
8
tests/modules/programs/vesktop/basic-settings.json
Normal file
8
tests/modules/programs/vesktop/basic-settings.json
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
{
|
||||||
|
"customTitleBar": false,
|
||||||
|
"discordBranch": "stable",
|
||||||
|
"hardwareAcceleration": true,
|
||||||
|
"minimizeToTray": false,
|
||||||
|
"staticTitle": true,
|
||||||
|
"tray": false
|
||||||
|
}
|
11
tests/modules/programs/vesktop/basic-theme.css
Normal file
11
tests/modules/programs/vesktop/basic-theme.css
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
.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;
|
||||||
|
}
|
19
tests/modules/programs/vesktop/basic-vencord-settings.json
Normal file
19
tests/modules/programs/vesktop/basic-vencord-settings.json
Normal file
|
@ -0,0 +1,19 @@
|
||||||
|
{
|
||||||
|
"autoUpdate": false,
|
||||||
|
"autoUpdateNotification": false,
|
||||||
|
"disableMinSize": true,
|
||||||
|
"enabledThemes": [
|
||||||
|
"theme.css"
|
||||||
|
],
|
||||||
|
"notifyAboutUpdates": false,
|
||||||
|
"plugins": {
|
||||||
|
"FakeNitro": {
|
||||||
|
"enabled": true
|
||||||
|
},
|
||||||
|
"MessageLogger": {
|
||||||
|
"enabled": true,
|
||||||
|
"ignoreSelf": true
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"useQuickCss": true
|
||||||
|
}
|
1
tests/modules/programs/vesktop/default.nix
Normal file
1
tests/modules/programs/vesktop/default.nix
Normal file
|
@ -0,0 +1 @@
|
||||||
|
{ vesktop-basic-configuration = ./basic-configuration.nix; }
|
Loading…
Reference in a new issue