home: natto: restart ags 10s after failure

Signed-off-by: Amneesh Singh <amneesh@ti.com>
This commit is contained in:
Amneesh Singh
2025-08-28 18:49:02 +05:30
parent 4decf54e13
commit 27f3b76ab7
2 changed files with 14 additions and 0 deletions

13
home/amneesh/wayvnc.nix Normal file
View File

@@ -0,0 +1,13 @@
{
...
}:
{
services.wayvnc = rec {
enable = true;
autoStart = enable;
settings = {
address = "0.0.0.0";
port = 5901;
};
};
}

View File

@@ -59,6 +59,7 @@ in
Environment = "PATH=${lib.makeBinPath deps}"; Environment = "PATH=${lib.makeBinPath deps}";
ExecStart = "${cfg.package}/bin/ags"; ExecStart = "${cfg.package}/bin/ags";
Restart = "on-failure"; Restart = "on-failure";
RestartSec = 10;
}; };
Install.WantedBy = [ "graphical-session.target" ]; Install.WantedBy = [ "graphical-session.target" ];
}; };