mirror of
https://github.com/traxys/Nixfiles.git
synced 2026-02-16 04:10:20 +01:00
minus: Add a waydroid auto-start
This commit is contained in:
parent
92b4ae91d5
commit
5da35aac7d
1 changed files with 25 additions and 0 deletions
|
|
@ -28,5 +28,30 @@
|
|||
NIXOS_OZONE_WL = 1;
|
||||
};
|
||||
|
||||
systemd.user.services.waydroid-session = {
|
||||
Unit = {
|
||||
Description = "Waydroid Session Service";
|
||||
After = "default.target";
|
||||
Requires = "default.target";
|
||||
};
|
||||
|
||||
Install = {
|
||||
WantedBy = [ "default.target" ];
|
||||
};
|
||||
|
||||
Service =
|
||||
let
|
||||
exe = "/run/current-system/sw/bin/waydroid";
|
||||
in
|
||||
{
|
||||
Type = "simple";
|
||||
ExecStart = "${exe} session start";
|
||||
ExecStop = "${exe} session stop";
|
||||
Restart = "always";
|
||||
RestartSec = "1s";
|
||||
WorkingDirectory = "/home/%u";
|
||||
};
|
||||
};
|
||||
|
||||
home.stateVersion = "23.11";
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue