clan-cli: upload.py -> Replace rsync with native ssh command

This commit is contained in:
Qubasa
2024-11-15 22:03:47 +07:00
parent c3bf6d719a
commit 26730cd662
12 changed files with 173 additions and 101 deletions

View File

@@ -44,6 +44,17 @@
'';
default = false;
};
deployment.nixosMobileWorkaround = lib.mkOption {
type = lib.types.bool;
description = ''
if true, the deployment will first do a nixos-rebuild switch
to register the boot profile the command will fail applying it to the running system
which is why afterwards we execute a nixos-rebuild test to apply
the new config without having to reboot.
This is a nixos-mobile deployment bug and will be removed in the future
'';
default = false;
};
vm.create = lib.mkOption {
type = lib.types.path;
description = ''
@@ -75,6 +86,7 @@
};
sops.defaultGroups = config.clan.core.sops.defaultGroups;
inherit (config.clan.core.networking) targetHost buildHost;
inherit (config.system.clan.deployment) nixosMobileWorkaround;
inherit (config.clan.deployment) requireExplicitUpdate;
};
system.clan.deployment.file = pkgs.writeText "deployment.json" (