Skip to content

Commit

Permalink
Update the "Set up a new host" runbook
Browse files Browse the repository at this point in the history
  • Loading branch information
barrucadu committed Jan 27, 2024
1 parent b28e024 commit 739f275
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions docs/src/runbooks/set-up-a-new-host.md
Original file line number Diff line number Diff line change
Expand Up @@ -153,18 +153,16 @@ nix run .#secrets
Then enable backups in the host configuration:

```nix
nixfiles.backups.enable = true;
nixfiles.backups.environmentFile = config.sops.secrets."nixfiles/backups/env".path;
sops.secrets."nixfiles/backups/env" = { };
nixfiles.restic-backups.enable = true;
nixfiles.restic-backups.environmentFile = config.sops.secrets."nixfiles/restic-backups/env".path;
sops.secrets."nixfiles/restic-backups/env" = { };
```

Most services define their own backup scripts. For any other needs, write a
custom script:
custom backup job:

```nix
nixfiles.backups.scripts.<name> = ''
<script which copies files to backup to the current working directory>
'';
nixfiles.restic-backups.backups.<name> = { ... };
```


Expand Down

0 comments on commit 739f275

Please sign in to comment.