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

This commit is contained in:
matt1432 2024-05-17 15:55:02 -04:00
parent 1c67489caa
commit 859be7969a
3 changed files with 52 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,48 @@
]; ];
})}/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-on-droid
nix-output-monitor
];
text = ''
exec nix-on-droid ${lib.concatStringSep " " [
"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 = {