wayvnc: init (#7123)
Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
This commit is contained in:
parent
8fc1e46ab6
commit
cf9ff6d993
8 changed files with 150 additions and 0 deletions
|
|
@ -496,6 +496,7 @@ import nmtSrc {
|
|||
./modules/services/udiskie
|
||||
./modules/services/volnoti
|
||||
./modules/services/way-displays
|
||||
./modules/services/wayvnc
|
||||
./modules/services/window-managers/bspwm
|
||||
./modules/services/window-managers/herbstluftwm
|
||||
./modules/services/window-managers/hyprland
|
||||
|
|
|
|||
3
tests/modules/services/wayvnc/default.nix
Normal file
3
tests/modules/services/wayvnc/default.nix
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
{
|
||||
wayvnc-simple = ./simple.nix;
|
||||
}
|
||||
3
tests/modules/services/wayvnc/simple-config
Normal file
3
tests/modules/services/wayvnc/simple-config
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
address=0.0.0.0
|
||||
port=5901
|
||||
username=foobar
|
||||
26
tests/modules/services/wayvnc/simple.nix
Normal file
26
tests/modules/services/wayvnc/simple.nix
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
{ 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}
|
||||
'';
|
||||
|
||||
}
|
||||
11
tests/modules/services/wayvnc/simple.service
Normal file
11
tests/modules/services/wayvnc/simple.service
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
[Install]
|
||||
WantedBy=graphical-session.target
|
||||
|
||||
[Service]
|
||||
ExecStart=/nix/store/00000000000000000000000000000000-dummy/bin/dummy
|
||||
|
||||
[Unit]
|
||||
After=graphical-session.target
|
||||
Description=wayvnc VNC server
|
||||
Documentation=man:wayvnc(1)
|
||||
PartOf=graphical-session.target
|
||||
Loading…
Add table
Add a link
Reference in a new issue