mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-02-23 00:19:00 +00:00
tests/modules/home-manager: init services.plover
This commit is contained in:
parent
bae26e1df5
commit
96eeb91e70
tests/modules/home-manager
@ -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
|
||||
]);
|
||||
}
|
||||
|
24
tests/modules/home-manager/services/plover/basic-service.nix
Normal file
24
tests/modules/home-manager/services/plover/basic-service.nix
Normal 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
|
||||
'';
|
||||
}
|
3
tests/modules/home-manager/services/plover/default.nix
Normal file
3
tests/modules/home-manager/services/plover/default.nix
Normal file
@ -0,0 +1,3 @@
|
||||
{
|
||||
plover-basic-service = ./basic-service.nix;
|
||||
}
|
Loading…
Reference in New Issue
Block a user