From 27f3b76ab7a19b3aa9d648a302fc6cbb2cdda1b7 Mon Sep 17 00:00:00 2001 From: Amneesh Singh Date: Thu, 28 Aug 2025 18:49:02 +0530 Subject: [PATCH] home: natto: restart ags 10s after failure Signed-off-by: Amneesh Singh --- home/amneesh/wayvnc.nix | 13 +++++++++++++ home/natto/ags/default.nix | 1 + 2 files changed, 14 insertions(+) create mode 100644 home/amneesh/wayvnc.nix diff --git a/home/amneesh/wayvnc.nix b/home/amneesh/wayvnc.nix new file mode 100644 index 0000000..b1abea8 --- /dev/null +++ b/home/amneesh/wayvnc.nix @@ -0,0 +1,13 @@ +{ + ... +}: +{ + services.wayvnc = rec { + enable = true; + autoStart = enable; + settings = { + address = "0.0.0.0"; + port = 5901; + }; + }; +} diff --git a/home/natto/ags/default.nix b/home/natto/ags/default.nix index d314d4d..e7d51b0 100644 --- a/home/natto/ags/default.nix +++ b/home/natto/ags/default.nix @@ -59,6 +59,7 @@ in Environment = "PATH=${lib.makeBinPath deps}"; ExecStart = "${cfg.package}/bin/ags"; Restart = "on-failure"; + RestartSec = 10; }; Install.WantedBy = [ "graphical-session.target" ]; };