Enables android dev on altair
This commit is contained in:
6
flake.lock
generated
6
flake.lock
generated
@@ -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": {
|
||||
|
||||
5
system/features/android-dev.nix
Normal file
5
system/features/android-dev.nix
Normal file
@@ -0,0 +1,5 @@
|
||||
{ ... }:
|
||||
{
|
||||
programs.adb.enable = true;
|
||||
users.users.drew.extraGroups = [ "adbusers" ];
|
||||
}
|
||||
@@ -9,6 +9,7 @@
|
||||
../../features/gc.nix
|
||||
../../features/gui.nix
|
||||
../../features/container-dev.nix
|
||||
../../features/android-dev.nix
|
||||
];
|
||||
|
||||
nixpkgs.config.allowUnfree = true;
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user