mirror of
https://github.com/serokell/deploy-rs.git
synced 2024-11-03 21:24:04 +03:00
Clean up simple
example
This commit is contained in:
parent
7c00fd2761
commit
58a934b997
@ -7,8 +7,8 @@
|
||||
"utils": "utils"
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1601668691,
|
||||
"narHash": "sha256-1mWf71DPRNgTIUKJ4Dy+CjoyZo4JkPdrwjYJy2UzqZE=",
|
||||
"lastModified": 1601952388,
|
||||
"narHash": "sha256-g5t4JNUl4xmKfKmzo5yzligVNTBHOTgw+vkuebP4B/Q=",
|
||||
"type": "git",
|
||||
"url": "file:///home/notgne2/Dev/Serokell/deploy-rs"
|
||||
},
|
||||
|
@ -7,34 +7,15 @@
|
||||
|
||||
inputs.deploy-rs.url = "github:serokell/deploy-rs";
|
||||
|
||||
outputs = { self, nixpkgs, deploy-rs }:
|
||||
let
|
||||
setActivate = base: activate: nixpkgs.legacyPackages.x86_64-linux.symlinkJoin {
|
||||
name = ("activatable-" + base.name);
|
||||
paths = [
|
||||
base
|
||||
(nixpkgs.legacyPackages.x86_64-linux.writeTextFile {
|
||||
name = base.name + "-activate-path";
|
||||
text = ''
|
||||
#!${nixpkgs.legacyPackages.x86_64-linux.runtimeShell}
|
||||
${activate}
|
||||
'';
|
||||
executable = true;
|
||||
destination = "/activate";
|
||||
})
|
||||
];
|
||||
outputs = { self, nixpkgs, deploy-rs }: {
|
||||
deploy.nodes.example = {
|
||||
hostname = "localhost";
|
||||
profiles.hello = {
|
||||
user = "balsoft";
|
||||
path = deploy-rs.lib.x86_64-linux.setActivate nixpkgs.legacyPackages.x86_64-linux.hello "./bin/hello";
|
||||
};
|
||||
in
|
||||
{
|
||||
|
||||
deploy.nodes.example = {
|
||||
hostname = "localhost";
|
||||
profiles.hello = {
|
||||
user = "balsoft";
|
||||
path = deploy-rs.lib.x86_64-linux.setActivate nixpkgs.legacyPackages.x86_64-linux.hello "./bin/hello";
|
||||
};
|
||||
};
|
||||
|
||||
checks = { "x86_64-linux" = { jsonSchema = deploy-rs.lib.x86_64-linux.checkSchema self.deploy; }; };
|
||||
};
|
||||
|
||||
checks = { "x86_64-linux" = { jsonSchema = deploy-rs.lib.x86_64-linux.checkSchema self.deploy; }; };
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user