forked from pub-solar/infra
docs: add metronom to deploy docs, style: format
This commit is contained in:
parent
a424152f94
commit
a3f7afd7a0
|
@ -10,13 +10,19 @@ Then, run `deploy-rs` with the hostname of the server you want to deploy:
|
||||||
For nachtigall.pub.solar:
|
For nachtigall.pub.solar:
|
||||||
|
|
||||||
```
|
```
|
||||||
deploy --targets '.#nachtigall' --magic-rollback false --auto-rollback false
|
deploy --targets '.#nachtigall' --magic-rollback false --auto-rollback false --keep-result --result-path ./results
|
||||||
```
|
```
|
||||||
|
|
||||||
For flora-6.pub.solar:
|
For flora-6.pub.solar:
|
||||||
|
|
||||||
```
|
```
|
||||||
deploy --targets '.#flora-6' --magic-rollback false --auto-rollback false
|
deploy --targets '.#flora-6' --magic-rollback false --auto-rollback false --keep-result --result-path ./results
|
||||||
|
```
|
||||||
|
|
||||||
|
For metronom.pub.solar (aarch64-linux):
|
||||||
|
|
||||||
|
```
|
||||||
|
deploy --targets '.#metronom' --magic-rollback false --auto-rollback false --keep-result --result-path ./results --remote-build
|
||||||
```
|
```
|
||||||
|
|
||||||
Usually we skip all rollback functionality, but if you want to deploy a change
|
Usually we skip all rollback functionality, but if you want to deploy a change
|
||||||
|
@ -28,6 +34,11 @@ deployment, add the flag `--skip-checks` at the end of the command.
|
||||||
`--dry-activate` can be used to only put all files in place without switching,
|
`--dry-activate` can be used to only put all files in place without switching,
|
||||||
to enable switching to the new config quickly at a later moment.
|
to enable switching to the new config quickly at a later moment.
|
||||||
|
|
||||||
|
We use `--keep-result --result-path ./results` to keep the last `result`
|
||||||
|
symlink of each `deploy` from being garbage collected. That way, we keep builds
|
||||||
|
cached in the Nix store. This is optional and both flags can be removed if disk
|
||||||
|
space is a scarce resource on your machine.
|
||||||
|
|
||||||
You'll need to have SSH Access to the boxes to be able to run `deploy`.
|
You'll need to have SSH Access to the boxes to be able to run `deploy`.
|
||||||
|
|
||||||
### Getting SSH access
|
### Getting SSH access
|
||||||
|
|
|
@ -51,7 +51,8 @@ in
|
||||||
*/
|
*/
|
||||||
lib.recursiveUpdate (lib.mapAttrs (_: c: {
|
lib.recursiveUpdate (lib.mapAttrs (_: c: {
|
||||||
hostname = getFqdn c;
|
hostname = getFqdn c;
|
||||||
profiles.system = let
|
profiles.system =
|
||||||
|
let
|
||||||
system = c.pkgs.system;
|
system = c.pkgs.system;
|
||||||
|
|
||||||
# Unmodified nixpkgs
|
# Unmodified nixpkgs
|
||||||
|
@ -62,10 +63,16 @@ in
|
||||||
inherit system;
|
inherit system;
|
||||||
overlays = [
|
overlays = [
|
||||||
inputs.deploy-rs.overlay # or deploy-rs.overlays.default
|
inputs.deploy-rs.overlay # or deploy-rs.overlays.default
|
||||||
(self: super: { deploy-rs = { inherit (pkgs) deploy-rs; lib = super.deploy-rs.lib; }; })
|
(self: super: {
|
||||||
|
deploy-rs = {
|
||||||
|
inherit (pkgs) deploy-rs;
|
||||||
|
lib = super.deploy-rs.lib;
|
||||||
|
};
|
||||||
|
})
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
in {
|
in
|
||||||
|
{
|
||||||
user = "root";
|
user = "root";
|
||||||
path = deployPkgs.deploy-rs.lib.activate.nixos c;
|
path = deployPkgs.deploy-rs.lib.activate.nixos c;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue