yarn: deploy-rs

This commit is contained in:
2025-11-16 15:58:21 -05:00
parent 84136a4af6
commit 66bbccfa4c
3 changed files with 135 additions and 34 deletions

View File

@@ -57,6 +57,11 @@
url = "github:nix-community/impermanence";
inputs.nixpkgs.follows = "nixpkgs";
};
deploy-rs = {
url = "github:serokell/deploy-rs";
inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs =
@@ -78,6 +83,24 @@
in
{
formatter.${system} = nixpkgs.legacyPackages.${system}.nixfmt-rfc-style;
deploy-yarn = {
nodes.yarn = {
hostname = "desktop";
profiles.system = {
user = "root";
path = inputs.deploy-rs.lib.x86_64-linux.activate.nixos (
self.nixosConfigurations.yarn.config.system.build.toplevel
);
sshUser = "primary";
sshOpts = [
"-p"
"22"
];
};
};
};
nixosConfigurations = nixpkgs.lib.foldl' (
config: hostname:
config