tests/modules/home-manager: init services.plover

This commit is contained in:
Gabriel Arazas 2024-03-08 10:08:55 +08:00
parent bae26e1df5
commit 96eeb91e70
No known key found for this signature in database
GPG Key ID: ADE0C41DAB221FCC
3 changed files with 32 additions and 2 deletions
tests/modules/home-manager

View File

@ -50,9 +50,12 @@ in
import nmt {
inherit pkgs lib modules;
testedAttrPath = [ "home" "activationPackage" ];
tests = builtins.foldl' (a: b: a // (import b)) { } [
tests = builtins.foldl' (a: b: a // (import b)) { } ([
./programs/neovide
./programs/pipewire
./programs/pop-launcher
];
]
++ lib.optionals isLinux [
./services/plover
]);
}

View File

@ -0,0 +1,24 @@
{ lib, pkgs, ... }:
{
services.plover = {
enable = true;
package = pkgs.plover-dev;
settings = {
"Output Configuration" = {
undo_levels = 100;
};
"Stroke Display" = {
show = true;
};
};
};
test.stubs.plover-dev = { };
nmt.script = ''
assertFileExists home-files/.config/plover/plover.cfg
assertFileExists home-files/.config/systemd/user/plover.service
'';
}

View File

@ -0,0 +1,3 @@
{
plover-basic-service = ./basic-service.nix;
}