mirror of
https://github.com/nix-community/home-manager.git
synced 2025-03-31 04:04:32 +00:00
Merge 1f5250329f
into 2d057cd9d4
This commit is contained in:
commit
bf69e5d711
2 changed files with 29 additions and 0 deletions
|
@ -424,6 +424,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
|
||||
|
|
28
modules/services/waydroid.nix
Normal file
28
modules/services/waydroid.nix
Normal 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;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Reference in a new issue