mirror of
https://github.com/nix-community/home-manager.git
synced 2025-11-08 11:36:05 +01:00
zapzap: add module
This commit is contained in:
parent
255b6a0ef2
commit
5e3b79ac84
4 changed files with 87 additions and 0 deletions
10
tests/modules/programs/zapzap/ZapZap.conf
Normal file
10
tests/modules/programs/zapzap/ZapZap.conf
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
[notification]
|
||||
donation_message=true
|
||||
|
||||
[system]
|
||||
scale=150
|
||||
theme=dark
|
||||
wayland=true
|
||||
|
||||
[website]
|
||||
open_page=false
|
||||
5
tests/modules/programs/zapzap/default.nix
Normal file
5
tests/modules/programs/zapzap/default.nix
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
{ lib, pkgs, ... }:
|
||||
|
||||
lib.optionalAttrs pkgs.stdenv.hostPlatform.isLinux {
|
||||
zapzap-settings = ./settings.nix;
|
||||
}
|
||||
20
tests/modules/programs/zapzap/settings.nix
Normal file
20
tests/modules/programs/zapzap/settings.nix
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
{
|
||||
programs.zapzap = {
|
||||
enable = true;
|
||||
settings = {
|
||||
notification.donation_message = true;
|
||||
website.open_page = false;
|
||||
system = {
|
||||
scale = 150;
|
||||
theme = "dark";
|
||||
wayland = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
nmt.script = ''
|
||||
assertFileExists home-files/.config/ZapZap/ZapZap.conf
|
||||
assertFileContent home-files/.config/ZapZap/ZapZap.conf \
|
||||
${./ZapZap.conf}
|
||||
'';
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue