mirror of
https://github.com/nix-community/home-manager.git
synced 2025-12-06 00:51:04 +01:00
26 lines
588 B
Nix
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}
|
|
'';
|
|
|
|
}
|