module(waydroid): Add waydroid module

This commit is contained in:
ulic-youthlic 2025-07-02 18:39:25 +08:00
parent 4b2706cf9b
commit 6267da609a
Signed by: youthlic
GPG key ID: 63E86C3C14A0D721
11 changed files with 381 additions and 11 deletions

View file

@ -37,6 +37,13 @@
};
hardware.asus.enable = true;
i18n.enable = true;
virtualisation = {
kvm = {
enable = true;
unixName = "david";
};
waydroid.enable = true;
};
programs = {
bash.enable = true;
guix.enable = true;
@ -45,10 +52,6 @@
steam.enable = true;
tailscale.enable = true;
kanata.enable = true;
kvm = {
enable = true;
unixName = "david";
};
transmission.enable = true;
nix-ld.enable = true;
juicity.client.enable = true;

View file

@ -9,5 +9,6 @@
./gui
./programs
./hardware.nix
./virtualisation
];
}

View file

@ -7,7 +7,6 @@
./dae
./forgejo.nix
./kanata.nix
./kvm.nix
./nh.nix
./open-webui.nix
./openssh.nix

View file

@ -0,0 +1,6 @@
{
imports = [
./kvm.nix
./waydroid.nix
];
}

View file

@ -4,10 +4,10 @@
pkgs,
...
}: let
cfg = config.youthlic.programs.kvm;
cfg = config.youthlic.virtualisation.kvm;
in {
options = {
youthlic.programs.kvm = {
youthlic.virtualisation.kvm = {
enable = lib.mkEnableOption "kvm";
unixName = lib.mkOption {
type = lib.types.str;

View file

@ -0,0 +1,20 @@
{
lib,
config,
pkgs,
...
}: let
cfg = config.youthlic.virtualisation.waydroid;
in {
options = {
youthlic.virtualisation.waydroid = {
enable = lib.mkEnableOption "waydroid";
};
};
config = {
virtualisation.waydroid = {
enable = true;
};
environment.systemPackages = with pkgs; [waydroid-script];
};
}