1
0
Fork 0
mirror of https://github.com/nix-community/home-manager.git synced 2025-12-06 00:51:04 +01:00
home-manager/tests/modules/services/wayvnc/simple.nix
Sefa Eyeoglu cf9ff6d993
wayvnc: init (#7123)
Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
2025-05-24 18:38:54 -05:00

26 lines
588 B
Nix

{ config, ... }:
{
services.wayvnc = {
enable = true;
package = config.lib.test.mkStubPackage { };
autoStart = true;
settings = {
address = "0.0.0.0";
port = 5901;
username = "foobar";
};
};
nmt.script = ''
assertFileExists home-files/.config/systemd/user/wayvnc.service
assertFileContent \
$(normalizeStorePaths home-files/.config/systemd/user/wayvnc.service) \
${./simple.service}
assertFileExists home-files/.config/wayvnc/config
assertFileContent home-files/.config/wayvnc/config ${./simple-config}
'';
}