mirror of
https://github.com/nix-community/home-manager.git
synced 2026-06-05 21:02:51 +00:00
equibop: init
This commit is contained in:
committed by
Austin Horstman
parent
6a1992acd9
commit
508daf831a
10
modules/misc/news/2026/03/2026-03-25_13-00-11.nix
Normal file
10
modules/misc/news/2026/03/2026-03-25_13-00-11.nix
Normal file
@@ -0,0 +1,10 @@
|
||||
{ pkgs, ... }:
|
||||
{
|
||||
time = "2026-03-25T12:00:11+00:00";
|
||||
condition = pkgs.stdenv.hostPlatform.isLinux;
|
||||
message = ''
|
||||
Added a new module `equibop`.
|
||||
|
||||
Equibop is a fork of Vesktop with more plugins.
|
||||
'';
|
||||
}
|
||||
19
modules/programs/equibop.nix
Normal file
19
modules/programs/equibop.nix
Normal file
@@ -0,0 +1,19 @@
|
||||
{ lib, ... }:
|
||||
let
|
||||
mkVesktopLikeModule = import ./vesktop/mkVesktopLikeModule.nix;
|
||||
in
|
||||
{
|
||||
imports = [
|
||||
(mkVesktopLikeModule {
|
||||
moduleName = "equibop";
|
||||
cordModuleName = "equicord";
|
||||
settingsLink = "https://github.com/Equicord/Equibop/blob/main/src/shared/settings.d.ts";
|
||||
cordSettingsLink = "https://github.com/Equicord/Equicord/blob/main/src/api/Settings.ts";
|
||||
installPackage = true;
|
||||
maintainers = with lib.maintainers; [
|
||||
PerchunPak
|
||||
NotAShelf
|
||||
];
|
||||
})
|
||||
];
|
||||
}
|
||||
57
tests/modules/programs/equibop/basic-configuration.nix
Normal file
57
tests/modules/programs/equibop/basic-configuration.nix
Normal file
@@ -0,0 +1,57 @@
|
||||
{
|
||||
config = {
|
||||
programs.equibop = {
|
||||
enable = true;
|
||||
settings = {
|
||||
tray = false;
|
||||
minimizeToTray = false;
|
||||
hardwareAcceleration = true;
|
||||
customTitleBar = false;
|
||||
staticTitle = true;
|
||||
discordBranch = "stable";
|
||||
};
|
||||
equicord = {
|
||||
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=home-files/.config/equibop
|
||||
assertFileExists $configDir/settings.json
|
||||
assertFileContent $configDir/settings.json \
|
||||
${./basic-settings.json}
|
||||
assertFileExists $configDir/settings/settings.json
|
||||
assertFileContent $configDir/settings/settings.json \
|
||||
${./basic-equicord-settings.json}
|
||||
assertFileExists $configDir/themes/my_theme.css
|
||||
assertFileContent $configDir/themes/my_theme.css \
|
||||
${./basic-theme.css}
|
||||
'';
|
||||
};
|
||||
}
|
||||
16
tests/modules/programs/equibop/basic-equicord-settings.json
Normal file
16
tests/modules/programs/equibop/basic-equicord-settings.json
Normal file
@@ -0,0 +1,16 @@
|
||||
{
|
||||
"autoUpdate": false,
|
||||
"autoUpdateNotification": false,
|
||||
"disableMinSize": true,
|
||||
"notifyAboutUpdates": false,
|
||||
"plugins": {
|
||||
"FakeNitro": {
|
||||
"enabled": true
|
||||
},
|
||||
"MessageLogger": {
|
||||
"enabled": true,
|
||||
"ignoreSelf": true
|
||||
}
|
||||
},
|
||||
"useQuickCss": true
|
||||
}
|
||||
8
tests/modules/programs/equibop/basic-settings.json
Normal file
8
tests/modules/programs/equibop/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/equibop/basic-theme.css
Normal file
11
tests/modules/programs/equibop/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;
|
||||
}
|
||||
4
tests/modules/programs/equibop/default.nix
Normal file
4
tests/modules/programs/equibop/default.nix
Normal file
@@ -0,0 +1,4 @@
|
||||
{ lib, pkgs, ... }:
|
||||
lib.optionalAttrs pkgs.stdenv.hostPlatform.isLinux {
|
||||
equibop-basic-configuration = ./basic-configuration.nix;
|
||||
}
|
||||
Reference in New Issue
Block a user