module(waydroid): Add waydroid module
This commit is contained in:
parent
4b2706cf9b
commit
6267da609a
11 changed files with 381 additions and 11 deletions
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -9,5 +9,6 @@
|
|||
./gui
|
||||
./programs
|
||||
./hardware.nix
|
||||
./virtualisation
|
||||
];
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,7 +7,6 @@
|
|||
./dae
|
||||
./forgejo.nix
|
||||
./kanata.nix
|
||||
./kvm.nix
|
||||
./nh.nix
|
||||
./open-webui.nix
|
||||
./openssh.nix
|
||||
|
|
|
|||
6
nixos/modules/virtualisation/default.nix
Normal file
6
nixos/modules/virtualisation/default.nix
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
imports = [
|
||||
./kvm.nix
|
||||
./waydroid.nix
|
||||
];
|
||||
}
|
||||
|
|
@ -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;
|
||||
20
nixos/modules/virtualisation/waydroid.nix
Normal file
20
nixos/modules/virtualisation/waydroid.nix
Normal 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];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue