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 = { vars = {
mainUser = "nix-on-droid"; mainUser = "nix-on-droid";
hostName = "localhost"; hostName = "localhost";
@ -13,27 +18,47 @@
]; ];
})}/share/fonts/truetype/NerdFonts/JetBrainsMonoNerdFontMono-Regular.ttf"; })}/share/fonts/truetype/NerdFonts/JetBrainsMonoNerdFontMono-Regular.ttf";
environment.packages = with pkgs; [ environment.packages =
diffutils (with pkgs; [
findutils diffutils
utillinux findutils
tzdata utillinux
hostname tzdata
man hostname
gnugrep man
ripgrep gnugrep
gnupg ripgrep
gnused gnupg
gnutar gnused
bzip2 gnutar
gzip bzip2
xz gzip
zip xz
unzip zip
openssh unzip
perl openssh
alejandra 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"; environment.etcBackupExtension = ".bak";
environment.motd = null; environment.motd = null;

View file

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

View file

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