feat(wip): add waydroid module and enable it for andromedae
This commit is contained in:
parent
83481a07f7
commit
76692f1924
@ -139,6 +139,7 @@ in
|
||||
|
||||
ataraxia.programs.corectrl.enable = true;
|
||||
ataraxia.programs.steam.enable = true;
|
||||
ataraxia.programs.waydroid.enable = true;
|
||||
ataraxia.vpn.sing-box.enable = true;
|
||||
ataraxia.vpn.sing-box.config = "ataraxia-singbox";
|
||||
services.tailscale = {
|
||||
|
36
modules/nixos/applications/waydroid.nix
Normal file
36
modules/nixos/applications/waydroid.nix
Normal file
@ -0,0 +1,36 @@
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
let
|
||||
inherit (builtins) hasAttr;
|
||||
inherit (lib) mkEnableOption mkIf;
|
||||
cfg = config.ataraxia.programs.waydroid;
|
||||
defaultUser = config.ataraxia.defaults.users.defaultUser;
|
||||
in
|
||||
{
|
||||
options.ataraxia.programs.waydroid = {
|
||||
enable = mkEnableOption "Enable waydroid";
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
environment.systemPackages = with pkgs; [ wl-clipboard ];
|
||||
virtualisation.waydroid.enable = true;
|
||||
|
||||
persist.state.directories = [ "/var/lib/waydroid" ];
|
||||
|
||||
home-manager = mkIf (hasAttr "users" config.home-manager) {
|
||||
users.${defaultUser} = {
|
||||
home.packages = with pkgs; [ waydroid-script ];
|
||||
persist.state.directories = [
|
||||
{
|
||||
directory = ".local/share/waydroid";
|
||||
method = "symlink";
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user