Add back Droid, second go around will surely work

This commit is contained in:
Bun 2025-04-18 04:15:54 -04:00
parent 2750e8e24e
commit 4335e92895
6 changed files with 80 additions and 7 deletions

26
flake.lock generated
View file

@ -1,5 +1,29 @@
{ {
"nodes": { "nodes": {
"avf": {
"locked": {
"lastModified": 1744940518,
"narHash": "sha256-pkbIduXLW85yB5wV6j72Gpxz5JJhuJBZxhXWsJ4BMd8=",
"type": "tarball",
"url": "https://github.com/nix-community/nixos-avf/releases/download/nixos-24.11/avf-channel-24.11-aarch64.tar.xz"
},
"original": {
"type": "tarball",
"url": "https://github.com/nix-community/nixos-avf/releases/download/nixos-24.11/avf-channel-24.11-aarch64.tar.xz"
}
},
"avf-channel": {
"locked": {
"lastModified": 1,
"narHash": "sha256-56qCMHw9q2hkyh6qlbrTKTN102OfZPkXVI4YGLa5Wgc=",
"type": "tarball",
"url": "https://github.com/nix-community/nixos-avf/releases/download/nixos-24.11/nixos-channel-24.11-aarch64.tar.xz"
},
"original": {
"type": "tarball",
"url": "https://github.com/nix-community/nixos-avf/releases/download/nixos-24.11/nixos-channel-24.11-aarch64.tar.xz"
}
},
"blender": { "blender": {
"inputs": { "inputs": {
"nixpkgs": "nixpkgs" "nixpkgs": "nixpkgs"
@ -442,6 +466,8 @@
}, },
"root": { "root": {
"inputs": { "inputs": {
"avf": "avf",
"avf-channel": "avf-channel",
"blender": "blender", "blender": "blender",
"disko": "disko", "disko": "disko",
"hm": "hm", "hm": "hm",

View file

@ -1,14 +1,10 @@
{ {
inputs = { inputs = {
# System inputs # General inputs
stable.url = "nixpkgs/nixos-24.11"; stable.url = "nixpkgs/nixos-24.11";
unstable.url = "nixpkgs/nixos-unstable"; unstable.url = "nixpkgs/nixos-unstable";
lanzaboote = { # System inputs
url = "github:nix-community/lanzaboote/v0.4.1";
inputs.nixpkgs.follows = "stable";
};
disko = { disko = {
url = "github:nix-community/disko"; url = "github:nix-community/disko";
inputs.nixpkgs.follows = "stable"; inputs.nixpkgs.follows = "stable";
@ -16,6 +12,12 @@
impermanence.url = "github:nix-community/impermanence"; impermanence.url = "github:nix-community/impermanence";
lanzaboote = {
url = "github:nix-community/lanzaboote/v0.4.1";
inputs.nixpkgs.follows = "stable";
};
# Service inputs
mailserver = { mailserver = {
url = "gitlab:simple-nixos-mailserver/nixos-mailserver/nixos-24.11"; url = "gitlab:simple-nixos-mailserver/nixos-mailserver/nixos-24.11";
inputs.nixpkgs.follows = "stable"; inputs.nixpkgs.follows = "stable";
@ -23,6 +25,10 @@
minecraft.url = "github:Infinidoge/nix-minecraft"; minecraft.url = "github:Infinidoge/nix-minecraft";
# Android inputs
avf.url = "https://github.com/nix-community/nixos-avf/releases/download/nixos-24.11/avf-channel-24.11-aarch64.tar.xz";
avf-channel.url = "https://github.com/nix-community/nixos-avf/releases/download/nixos-24.11/nixos-channel-24.11-aarch64.tar.xz";
# Home inputs # Home inputs
hm = { hm = {
url = "github:nix-community/home-manager/release-24.11"; url = "github:nix-community/home-manager/release-24.11";
@ -39,11 +45,17 @@
outputs = { outputs = {
stable, stable,
unstable, unstable,
lanzaboote,
disko, disko,
impermanence, impermanence,
lanzaboote,
mailserver, mailserver,
minecraft, minecraft,
avf,
avf-channel,
hm, hm,
nur, nur,
blender, blender,
@ -68,6 +80,8 @@
intuos = mkNix [ ./hosts/intuos ] unstable; # Wacom Intuos Tablet intuos = mkNix [ ./hosts/intuos ] unstable; # Wacom Intuos Tablet
redmond = mkNix [ ./hosts/redmond ] stable; # Lenovo Dual-Boot redmond = mkNix [ ./hosts/redmond ] stable; # Lenovo Dual-Boot
droid = mkNix [ ./hosts/droid ] avf-channel; # Android Virtualization Framework
midas = mkNix [ ./hosts/midas ] stable; # Dell Optiplex 5040 midas = mkNix [ ./hosts/midas ] stable; # Dell Optiplex 5040
kitty = mkNix [ ./hosts/kitty ] stable; # Dell Optiplex 7010 kitty = mkNix [ ./hosts/kitty ] stable; # Dell Optiplex 7010
prophet = mkNix [ ./hosts/prophet ] stable; # Oracle Neoverse-N1 prophet = mkNix [ ./hosts/prophet ] stable; # Oracle Neoverse-N1

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

@ -0,0 +1,17 @@
{ lib, avf, ... }:
{
imports = [
./users
../../modules/system
avf.nixosModules.avf
];
networking.hostName = "droid";
system = {
desktop.enable = true;
stateVersion = "25.05";
};
nixpkgs.hostPlatform = lib.mkDefault "aarch64-linux";
}

View file

@ -0,0 +1 @@
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIC2lMkUd+BbXITE5LTg94hEzmA6UKsIIbaf5YOjGoLzl

View file

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

View file

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