diff --git a/home/graphical.nix b/home/graphical.nix index 95fe42df..0641a790 100644 --- a/home/graphical.nix +++ b/home/graphical.nix @@ -155,7 +155,7 @@ in rec { spawn-at-startup = [ { command = [ "${pkgs.xwayland-satellite}/bin/xwayland-satellite" XWAYLAND_DISPLAY ]; } { command = [ "${x-wayland-clipboard-daemon}" ]; } - { command = [ "${pkgs.dbus}/bin/dbus-update-activation-environment" "--systemd" "WAYLAND_DISPLAY" "XDG_CURRENT_DESKTOP" ]; } + { command = [ "${pkgs.dbus}/bin/dbus-update-activation-environment" "--systemd" "WAYLAND_DISPLAY" "XDG_CURRENT_DESKTOP" ]; } # needed for screen-sharing to work ]; environment.DISPLAY = XWAYLAND_DISPLAY; diff --git a/nixos/machines/foxhut/machine.nix b/nixos/machines/foxhut/machine.nix index 3edffbeb..9cefbb94 100644 --- a/nixos/machines/foxhut/machine.nix +++ b/nixos/machines/foxhut/machine.nix @@ -154,11 +154,13 @@ in { enable = true; after = [ "network.target" ]; + requires = [ "network.target" ]; wantedBy = [ "multi-user.target" ]; serviceConfig = { ExecStart = "${pkgs.sshpass}/bin/sshpass -f /home/xenia/wireguard-keys/cid.pw ${pkgs.openssh}/bin/ssh -o StrictHostKeychecking=no -vNL 443:rds-gw.studat.chalmers.se:443 loovj@remote11.chalmers.se"; Type = "simple"; User = "root"; # to bind on :443 + Restart = "on-failure"; }; }; }