Configure nix-on-droid

This commit is contained in:
Fern Garden 2025-07-16 23:14:52 +08:00
parent c2fc35e12d
commit 11494614c8
5 changed files with 302 additions and 3 deletions

View file

@ -6,6 +6,12 @@
nixpkgs-pr-fluffychat.url = "github:NixOS/nixpkgs?ref=pull/419632/head"; # FluffyChat 2.0.0
nixpkgs-pr-feishin.url = "github:NixOS/nixpkgs?ref=pull/414929/head"; # Feishin 0.17.0
# Termux fork with nix installed.
nix-on-droid = {
url = "github:nix-community/nix-on-droid/release-24.05";
inputs.nixpkgs.follows = "nixpkgs";
};
deploy-rs.url = "github:serokell/deploy-rs"; # Remote deployment
lanzaboote.url = "github:nix-community/lanzaboote"; # Secure boot.
nixos-hardware.url = "github:NixOS/nixos-hardware"; # Hardware specific config.
@ -27,7 +33,7 @@
} @ inputs: let
# Import helpers & make functions available.
helpers = import ./helpers.nix inputs;
inherit (helpers) mergeHosts mkHost;
inherit (helpers) mergeHosts mkHost mkDroid;
in
mergeHosts [
# ThinkPad T480.
@ -48,6 +54,13 @@
];
})
# Pixel 6A.
(mkDroid "fairywren" {
uid = 10411;
gid = 10411;
ipAddress = "10.0.1.11";
})
# VM running a Minecraft server.
(mkHost "minecraft" {
suite = "server/vm";