greetd: Only open firewall for wayvnc when tailscale is not enabled
This commit is contained in:
parent
7e86becbb2
commit
9c99926c8a
1 changed files with 2 additions and 2 deletions
|
@ -77,14 +77,14 @@ in
|
||||||
|
|
||||||
# exec "${pkgs.greetd.regreet}/bin/regreet; swaymsg exit"
|
# exec "${pkgs.greetd.regreet}/bin/regreet; swaymsg exit"
|
||||||
|
|
||||||
networking.firewall.allowedTCPPorts = lib.mkIf cfg.wayvnc [ 5900 ];
|
networking.firewall.allowedTCPPorts = lib.mkIf (cfg.wayvnc && !config.services.tailscale.enable) [ 5900 ];
|
||||||
|
|
||||||
environment = {
|
environment = {
|
||||||
systemPackages = with pkgs; [ pantheon.elementary-gtk-theme pantheon.elementary-icon-theme ];
|
systemPackages = with pkgs; [ pantheon.elementary-gtk-theme pantheon.elementary-icon-theme ];
|
||||||
etc = {
|
etc = {
|
||||||
"greetd/sway-config" = {
|
"greetd/sway-config" = {
|
||||||
text = lib.concatStringsSep "\n"
|
text = lib.concatStringsSep "\n"
|
||||||
((lib.optional cfg.wayvnc "exec ${pkgs.wayvnc}/bin/wayvnc -g 0.0.0.0") ++
|
((lib.optional cfg.wayvnc "exec ${pkgs.wayvnc}/bin/wayvnc 0.0.0.0") ++
|
||||||
[
|
[
|
||||||
''
|
''
|
||||||
exec "${pkgs.greetd.gtkgreet}/bin/gtkgreet -l -s /etc/greetd/gtkgreet.css -b ${cfg.wallpaper}; swaymsg exit"
|
exec "${pkgs.greetd.gtkgreet}/bin/gtkgreet -l -s /etc/greetd/gtkgreet.css -b ${cfg.wallpaper}; swaymsg exit"
|
||||||
|
|
Loading…
Reference in a new issue