[m] Android dev, cleanup, qemu,...
This commit is contained in:
parent
0486df012d
commit
81be322a80
@ -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
|
||||
|
||||
];
|
||||
};
|
||||
}
|
||||
|
@ -24,6 +24,10 @@ with lib; {
|
||||
type = types.bool;
|
||||
default = false;
|
||||
};
|
||||
develop = mkOption {
|
||||
type = types.bool;
|
||||
default = false;
|
||||
};
|
||||
};
|
||||
net = {
|
||||
wlp = {
|
||||
|
@ -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"
|
||||
'';
|
||||
};
|
||||
}
|
||||
|
@ -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 = {
|
||||
|
@ -2,6 +2,7 @@
|
||||
nixpkgs.config = {
|
||||
permittedInsecurePackages = [ ];
|
||||
allowUnfree = true;
|
||||
android_sdk.accept_license = true;
|
||||
packageOverrides = pkgs: rec {
|
||||
custom = import ../../../../packages { inherit pkgs; };
|
||||
};
|
||||
|
@ -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 ];
|
||||
}
|
||||
|
@ -10,6 +10,8 @@
|
||||
"wheel"
|
||||
"vboxsf"
|
||||
"adbusers"
|
||||
"libvirtd"
|
||||
"kvm"
|
||||
"lp"
|
||||
"audio"
|
||||
"video"
|
||||
|
@ -14,6 +14,7 @@
|
||||
virt = true;
|
||||
power = false;
|
||||
game = true;
|
||||
develop = true;
|
||||
};
|
||||
net = {
|
||||
wlp = {
|
||||
|
@ -14,6 +14,7 @@
|
||||
virt = true;
|
||||
power = true;
|
||||
game = true;
|
||||
develop = true;
|
||||
};
|
||||
net = {
|
||||
wlp = {
|
||||
|
Loading…
x
Reference in New Issue
Block a user