feat(droid): add remote building
All checks were successful
Discord / discord commits (push) Has been skipped

This commit is contained in:
matt1432 2024-05-17 16:13:27 -04:00
parent 1c67489caa
commit 86772cf04d
3 changed files with 51 additions and 23 deletions

View file

@ -1,4 +1,9 @@
{pkgs, ...}: {
{
config,
lib,
pkgs,
...
}: {
vars = {
mainUser = "nix-on-droid";
hostName = "localhost";
@ -13,7 +18,8 @@
];
})}/share/fonts/truetype/NerdFonts/JetBrainsMonoNerdFontMono-Regular.ttf";
environment.packages = with pkgs; [
environment.packages =
(with pkgs; [
diffutils
findutils
utillinux
@ -32,7 +38,26 @@
unzip
openssh
perl
which
alejandra
])
++ [
(pkgs.writeShellApplication {
name = "switch";
runtimeInputs = with pkgs; [
nix-output-monitor
];
text = ''
exec nix-on-droid ${lib.concatStringsSep " " [
"switch"
"--flake ${config.environment.variables.FLAKE}"
"--builders ssh-ng://matt@100.64.0.7"
''"$@"''
"|&"
"nom"
]}
'';
})
];
environment.etcBackupExtension = ".bak";

View file

@ -37,7 +37,7 @@ in {
homeMode = "500";
openssh.authorizedKeys.keys = [
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIGOujvC5JLnyjqD1bzl/H0256Gxw/biu7spIHy3YJiDL root@oksys"
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIGOujvC5JLnyjqD1bzl/H0256Gxw/biu7spIHy3YJiDL"
];
};
};

View file

@ -35,6 +35,9 @@
configurationLimit = 30;
};
};
# Support building binaries for arm64
binfmt.emulatedSystems = ["aarch64-linux"];
};
fileSystems = {