This commit is contained in:
Jonas Heinrich 2024-04-28 00:59:59 +02:00 committed by GitHub
commit e90dc6bf9c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 29 additions and 0 deletions

View File

@ -368,6 +368,7 @@ let
./services/unison.nix
./services/vdirsyncer.nix
./services/volnoti.nix
./services/waydroid.nix
./services/window-managers/awesome.nix
./services/window-managers/bspwm/default.nix
./services/window-managers/fluxbox.nix

View File

@ -0,0 +1,28 @@
{ config, lib, pkgs, ... }:
with lib;
let
cfg = config.services.waydroid;
in {
options.services.waydroid.enable = mkEnableOption "Waydroid Android container";
config = mkIf cfg.enable {
systemd.user.services.waydroid-session = {
Unit = {
Description = "Waydroid user session";
Requires = [ "waydroid-container.service" ];
};
Install.WantedBy = [ "default.target" ];
Service = {
ExecStart =
"${pkgs.waydroid}/bin/waydroid session start";
Restart = "always";
RestartSec = 12;
};
};
};
}