Update + remote build for some deploys

This commit is contained in:
Aleksandr Lebedev 2025-10-22 00:41:33 +02:00
parent 9efd16c34f
commit a2878180cf
4 changed files with 45 additions and 38 deletions

View file

@ -31,6 +31,7 @@ in rec {
result: name: let
host = hosts.${name};
user = overrides.user or null;
remoteBuild = overrides.remoteBuild or null;
inherit (host.pkgs) system;
in
result
@ -51,6 +52,9 @@ in rec {
// lib.optionalAttrs (user != null) {
sshUser = user;
}
// lib.optionalAttrs (remoteBuild != null) {
inherit remoteBuild;
}
// lib.optionalAttrs (host.config.system.security.doas.enable or false) {
sudo = "doas -u";
};