[m] Android dev, cleanup, qemu,...

This commit is contained in:
soraefir 2024-01-19 11:58:52 +01:00
parent 0486df012d
commit 81be322a80
Signed by: sora
GPG Key ID: A362EA0491E2EEA0
9 changed files with 40 additions and 21 deletions

View File

@ -1,14 +1,19 @@
{ lib, config, pkgs, ... }: {
{ lib, config, pkgs, ... }:
let
android_env = pkgs.androidenv.composeAndroidPackages {
platformVersions = [ "34" ];
abiVersions = [ "x86" "x86_64" ];
includeEmulator = false;
};
in {
imports = [ ./vscodium ];
config = lib.mkIf (config.homecfg.make.develop) {
home.packages = with pkgs; [
blender
godot_4
android-tools
androidStudioPackages.canary
];
};
}

View File

@ -24,6 +24,10 @@ with lib; {
type = types.bool;
default = false;
};
develop = mkOption {
type = types.bool;
default = false;
};
};
net = {
wlp = {

View File

@ -1,7 +1,9 @@
{ ... }: {
systemd.services.systemd-udevd.restartIfChanged = false;
services.udev.extraRules = ''
services.udev = {
packages = [ ];
extraRules = ''
SUBSYSTEM=="usb", ATTRS{idVendor}=="2104", ATTRS{idProduct}=="0127", GROUP="plugdev", TAG+="uaccess"
SUBSYSTEM=="usb", ATTRS{idVendor}=="2104", ATTRS{idProduct}=="0118", GROUP="plugdev", TAG+="uaccess"
SUBSYSTEM=="usb", ATTRS{idVendor}=="2104", ATTRS{idProduct}=="0106", GROUP="plugdev", TAG+="uaccess"
@ -10,4 +12,5 @@
SUBSYSTEM=="usb", ATTRS{idVendor}=="2104", ATTRS{idProduct}=="0102", GROUP="plugdev", TAG+="uaccess"
SUBSYSTEM=="usb", ATTRS{idVendor}=="2104", ATTRS{idProduct}=="0313", GROUP="plugdev", TAG+="uaccess"
'';
};
}

View File

@ -1,9 +1,11 @@
{ lib, config, ... }:
{ lib, config, pkgs, ... }:
let cfg = config.hostcfg.make.virt;
in {
config = lib.mkIf cfg {
environment.systemPackages = [ pkgs.qemu ];
virtualisation = {
# libvirtd.enable = true;
libvirtd.enable = true;
# waydroid.enable = true;
# lxd.enable = true;
docker = {

View File

@ -2,6 +2,7 @@
nixpkgs.config = {
permittedInsecurePackages = [ ];
allowUnfree = true;
android_sdk.accept_license = true;
packageOverrides = pkgs: rec {
custom = import ../../../../packages { inherit pkgs; };
};

View File

@ -1,6 +1,6 @@
{ pkgs, ... }: {
{ pkgs, config, ... }: {
programs.adb.enable = true;
programs.wireshark.enable = true;
environment.systemPackages = with pkgs; [ wget dconf ];
environment.systemPackages = with pkgs; [ wget dconf wireshark ];
}

View File

@ -10,6 +10,8 @@
"wheel"
"vboxsf"
"adbusers"
"libvirtd"
"kvm"
"lp"
"audio"
"video"

View File

@ -14,6 +14,7 @@
virt = true;
power = false;
game = true;
develop = true;
};
net = {
wlp = {

View File

@ -14,6 +14,7 @@
virt = true;
power = true;
game = true;
develop = true;
};
net = {
wlp = {