yarn: deploy-rs
This commit is contained in:
23
flake.nix
23
flake.nix
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user