added android to dev

This commit is contained in:
Sven Vogel 2023-12-23 12:13:43 +01:00
parent d2db42180d
commit 8377a0b8b7
4 changed files with 21 additions and 6 deletions

View File

@ -5,16 +5,16 @@ in
{ {
imports = [ imports = [
./hardware-configuration.nix # Include the results of the hardware scan. ./hardware-configuration.nix # Include the results of the hardware scan.
./core # core system components
./system # system components such as kernel
./nix-settings.nix # nix related config ./nix-settings.nix # nix related config
./users ./users
./.luks-swap.nix ./.luks-swap.nix
./fonts.nix # system wide font settings ./fonts.nix # system wide font settings
./extra # extra packages ./extra # extra packages
./core # core system components
./dev # development stuff ./dev # development stuff
./games # games ./games # games
./hardware # hardware specific settings ./hardware # hardware specific settings
./system # system components such as kernel
]; ];
# This value determines the NixOS release from which the default # This value determines the NixOS release from which the default

11
dev/android.nix Normal file
View File

@ -0,0 +1,11 @@
{ pkgs, lib, config, ... }:
let
settings = import ./../settings.nix;
in
{
programs.adb.enable = true;
services.udev.packages = [
pkgs.android-udev-rules
];
}

View File

@ -12,5 +12,6 @@ in
++ lib.optionals settings.dev.python3.enable [ ./python3.nix ] ++ lib.optionals settings.dev.python3.enable [ ./python3.nix ]
++ lib.optionals settings.virtualisation.waydroid [ ./waydroid.nix ] ++ lib.optionals settings.virtualisation.waydroid [ ./waydroid.nix ]
++ lib.optionals settings.virtualisation.wine.enable [ ./wine.nix ] ++ lib.optionals settings.virtualisation.wine.enable [ ./wine.nix ]
++ lib.optionals settings.dev.arduino.enable [ ./arduino.nix ]; ++ lib.optionals settings.dev.arduino.enable [ ./arduino.nix ]
++ lib.optionals settings.dev.android.enable [ ./android.nix ];
} }

View File

@ -21,7 +21,7 @@ with import <nixpkgs> {};
}; };
}; };
fish = true; fish = false;
plasma5 = { plasma5 = {
enable = true; enable = true;
@ -42,7 +42,7 @@ with import <nixpkgs> {};
}; };
qemu = { qemu = {
enable = true; enable = true;
virt-manager = true; virt-manager = false;
}; };
waydroid = false; waydroid = false;
wine = { wine = {
@ -74,6 +74,9 @@ with import <nixpkgs> {};
enable = false; # enable arduino development platform enable = false; # enable arduino development platform
ide2 = true; # wether to use IDE 2.x or deprecated 1.x ide2 = true; # wether to use IDE 2.x or deprecated 1.x
}; };
android = {
enable = true;
};
lsp = { lsp = {
enable = true; enable = true;
# various language server # various language server
@ -103,7 +106,7 @@ with import <nixpkgs> {};
networking = { networking = {
wireguard = true; # enable wireguard protocol wireguard = true; # enable wireguard protocol
hostname = "servostar-nixos-desktop"; hostname = "servostar-nixos-flex";
}; };
games = { games = {