From ca4d4d714c67ed24fc121e92d7b7828f7954f69d Mon Sep 17 00:00:00 2001 From: Drew Haven Date: Sat, 5 Jul 2025 14:26:44 -0700 Subject: [PATCH] Enables android dev on altair --- flake.lock | 6 +++--- system/features/android-dev.nix | 5 +++++ system/hosts/altair/default.nix | 1 + system/hosts/altair/hardware-configuration.nix | 12 +++++++++++- 4 files changed, 20 insertions(+), 4 deletions(-) create mode 100644 system/features/android-dev.nix diff --git a/flake.lock b/flake.lock index 6dc8a14..2990858 100644 --- a/flake.lock +++ b/flake.lock @@ -23,11 +23,11 @@ }, "nixpkgs": { "locked": { - "lastModified": 1750969886, - "narHash": "sha256-zW/OFnotiz/ndPFdebpo3X0CrbVNf22n4DjN2vxlb58=", + "lastModified": 1751211869, + "narHash": "sha256-1Cu92i1KSPbhPCKxoiVG5qnoRiKTgR5CcGSRyLpOd7Y=", "owner": "nixos", "repo": "nixpkgs", - "rev": "a676066377a2fe7457369dd37c31fd2263b662f4", + "rev": "b43c397f6c213918d6cfe6e3550abfe79b5d1c51", "type": "github" }, "original": { diff --git a/system/features/android-dev.nix b/system/features/android-dev.nix new file mode 100644 index 0000000..73bdbd9 --- /dev/null +++ b/system/features/android-dev.nix @@ -0,0 +1,5 @@ +{ ... }: +{ + programs.adb.enable = true; + users.users.drew.extraGroups = [ "adbusers" ]; +} diff --git a/system/hosts/altair/default.nix b/system/hosts/altair/default.nix index e700708..7ccbe2d 100644 --- a/system/hosts/altair/default.nix +++ b/system/hosts/altair/default.nix @@ -9,6 +9,7 @@ ../../features/gc.nix ../../features/gui.nix ../../features/container-dev.nix + ../../features/android-dev.nix ]; nixpkgs.config.allowUnfree = true; diff --git a/system/hosts/altair/hardware-configuration.nix b/system/hosts/altair/hardware-configuration.nix index c76d06d..0a46151 100644 --- a/system/hosts/altair/hardware-configuration.nix +++ b/system/hosts/altair/hardware-configuration.nix @@ -69,7 +69,17 @@ services.xserver.videoDrivers = [ "nvidia" ]; hardware.nvidia = { - package = config.boot.kernelPackages.nvidiaPackages.beta; + # Other options include: + # stable - Current stable + # production - Same as stable + # latest - Bleeding edge + # beta - latest beta + # + # See https://nixos.wiki/wiki/Nvidia + # + # Current versions can be found in https://github.com/NixOS/nixpkgs/blob/nixos-unstable/pkgs/os-specific/linux/nvidia-x11/default.nix + # + package = config.boot.kernelPackages.nvidiaPackages.production; modesetting.enable = true;