Attempt Android support

This commit is contained in:
Bun 2025-04-14 00:20:20 -04:00
parent 97e0076656
commit ad3c035569
5 changed files with 60 additions and 9 deletions

34
flake.lock generated
View file

@ -1,5 +1,20 @@
{
"nodes": {
"android": {
"locked": {
"lastModified": 1744517047,
"narHash": "sha256-o7HeWj7P8xSIYuN2pdAF6Hlb4rINYe1ZN3oIbHxAZXQ=",
"owner": "nix-community",
"repo": "nixos-avf",
"rev": "968a3e4d14fd4158b3cb7a4894753160cc944c04",
"type": "github"
},
"original": {
"owner": "nix-community",
"repo": "nixos-avf",
"type": "github"
}
},
"blender": {
"inputs": {
"nixpkgs": "nixpkgs"
@ -316,11 +331,11 @@
"nixpkgs": "nixpkgs_2"
},
"locked": {
"lastModified": 1744514511,
"narHash": "sha256-7WRQID3LZU8vDUZKmAJv1OCdX8s3fiApT2vaLy5broY=",
"lastModified": 1744595997,
"narHash": "sha256-iHomd0X27UxJdkjcb2nij3GM9MdG+JJf28zW8xjNQl0=",
"owner": "Infinidoge",
"repo": "nix-minecraft",
"rev": "2704b1051617adbb9a5ca4f4701bb3fd8837a9c7",
"rev": "5ee04b89fedbb41eb6056030284ffdd15439a744",
"type": "github"
},
"original": {
@ -400,11 +415,11 @@
"treefmt-nix": "treefmt-nix"
},
"locked": {
"lastModified": 1744522688,
"narHash": "sha256-8J3jr4aE3rEbJ6IppuHZimCuO62DYrzH1uEF2PXfazU=",
"lastModified": 1744602858,
"narHash": "sha256-j94Uygs1zqK5MrzAkbqTH+9r6J7vPn6fUL8Dv8+hBCA=",
"owner": "nix-community",
"repo": "NUR",
"rev": "db95f2218820c7e281a50de3da6891ba6c2ad702",
"rev": "8fe101f5587e97fdb80201b31e4ab50565d6fcee",
"type": "github"
},
"original": {
@ -442,6 +457,7 @@
},
"root": {
"inputs": {
"android": "android",
"blender": "blender",
"disko": "disko",
"hm": "hm",
@ -481,11 +497,11 @@
},
"stable": {
"locked": {
"lastModified": 1744309437,
"narHash": "sha256-QZnNHM823am8apCqKSPdtnzPGTy2ZB4zIXOVoBp5+W0=",
"lastModified": 1744440957,
"narHash": "sha256-FHlSkNqFmPxPJvy+6fNLaNeWnF1lZSgqVCl/eWaJRc4=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "f9ebe33a928b5d529c895202263a5ce46bdf12f7",
"rev": "26d499fc9f1d567283d5d56fcf367edd815dba1d",
"type": "github"
},
"original": {

View file

@ -16,6 +16,8 @@
impermanence.url = "github:nix-community/impermanence";
android.url = "github:nix-community/nixos-avf";
mailserver = {
url = "gitlab:simple-nixos-mailserver/nixos-mailserver/nixos-24.11";
inputs.nixpkgs.follows = "stable";
@ -42,6 +44,7 @@
lanzaboote,
disko,
impermanence,
android,
mailserver,
minecraft,
hm,
@ -73,6 +76,8 @@
midas = mkNix [ ./hosts/midas ]; # Dell Optiplex 5040
kitty = mkNix [ ./hosts/kitty ]; # Dell Optiplex 7010
prophet = mkNix [ ./hosts/prophet ]; # Oracle Neoverse-N1
droid = mkNix [ ./hosts/tower ]; # Android Virtualization Framework
};
# nh home switch /path -c arch

17
hosts/droid/default.nix Normal file
View file

@ -0,0 +1,17 @@
{ config, android, ... }:
{
imports = [
./users
../../modules/system
android.nixosModules.avf
];
networking.hostName = "droid";
avf.defaultUser = config.sysusers.main;
system = {
desktop.enable = true;
stateVersion = "24.11";
};
}

View file

@ -0,0 +1,4 @@
{ ... }:
{
imports = [ ./main ];
}

View file

@ -0,0 +1,9 @@
{ config, lib, ... }:
{
home-manager.users."${config.sysusers.main}".home = {
desktop.enable = true;
gaming.enable = true;
production.enable = true;
stateVersion = lib.mkForce config.system.stateVersion;
};
}