mirror of
https://github.com/nix-community/home-manager.git
synced 2026-01-12 01:50:44 +08:00
abaddon: add module
This commit is contained in:
committed by
Austin Horstman
parent
b5698ed57d
commit
acaf3971c1
15
tests/modules/programs/abaddon/abaddon.ini
Normal file
15
tests/modules/programs/abaddon/abaddon.ini
Normal file
@@ -0,0 +1,15 @@
|
||||
[discord]
|
||||
autoconnect=true
|
||||
token=MZ1yGvKTjE0rY0cV8i47CjAa.uRHQPq.Xb1Mk2nEhe-4iUcrGOuegj57zMC
|
||||
|
||||
[gui]
|
||||
alt_menu=true
|
||||
animations=false
|
||||
hide_to_tray=true
|
||||
stock_emojis=false
|
||||
|
||||
[notifications]
|
||||
enabled=false
|
||||
|
||||
[windows]
|
||||
hideconsole=true
|
||||
5
tests/modules/programs/abaddon/default.nix
Normal file
5
tests/modules/programs/abaddon/default.nix
Normal file
@@ -0,0 +1,5 @@
|
||||
{ lib, pkgs, ... }:
|
||||
|
||||
lib.optionalAttrs pkgs.stdenv.hostPlatform.isLinux {
|
||||
abaddon-example-config = ./example-config.nix;
|
||||
}
|
||||
26
tests/modules/programs/abaddon/example-config.nix
Normal file
26
tests/modules/programs/abaddon/example-config.nix
Normal file
@@ -0,0 +1,26 @@
|
||||
{
|
||||
programs.abaddon = {
|
||||
enable = true;
|
||||
settings = {
|
||||
windows.hideconsole = true;
|
||||
notifications.enabled = false;
|
||||
discord = {
|
||||
token = "MZ1yGvKTjE0rY0cV8i47CjAa.uRHQPq.Xb1Mk2nEhe-4iUcrGOuegj57zMC";
|
||||
autoconnect = true;
|
||||
};
|
||||
|
||||
gui = {
|
||||
stock_emojis = false;
|
||||
animations = false;
|
||||
alt_menu = true;
|
||||
hide_to_tray = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
nmt.script = ''
|
||||
assertFileExists home-files/.config/abaddon/abaddon.ini
|
||||
assertFileContent home-files/.config/abaddon/abaddon.ini \
|
||||
${./abaddon.ini}
|
||||
'';
|
||||
}
|
||||
Reference in New Issue
Block a user