improve documentation (#392)
Co-authored-by: ibizaman <ibizapeanut@gmail.com>
This commit is contained in:
parent
ab86c6e133
commit
2f4bbdd061
5 changed files with 1331 additions and 72 deletions
24
.github/workflows/build.yaml
vendored
24
.github/workflows/build.yaml
vendored
|
|
@ -20,22 +20,28 @@ jobs:
|
||||||
path-filter:
|
path-filter:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
outputs:
|
outputs:
|
||||||
changed: ${{ steps.filter.outputs.changed }}
|
changed: ${{ steps.filter.outputs.any_changed }}
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- uses: dorny/paths-filter@v3
|
- uses: tj-actions/changed-files@v45
|
||||||
id: filter
|
id: filter
|
||||||
with:
|
with:
|
||||||
filters: |
|
files: |
|
||||||
changed:
|
lib/**
|
||||||
- 'lib/**'
|
modules/**
|
||||||
- 'modules/**'
|
!modules/**/docs/**
|
||||||
- '!modules/**/docs/**'
|
test/**
|
||||||
- 'test/**'
|
.github/workflows/build.yaml
|
||||||
- '.github/workflows/build.yaml'
|
separator: "\n"
|
||||||
|
|
||||||
|
- env:
|
||||||
|
ALL_CHANGED_FILES: ${{ steps.filter.outputs.all_changed_files }}
|
||||||
|
run: |
|
||||||
|
echo $ALL_CHANGED_FILES
|
||||||
|
|
||||||
|
|
||||||
build-matrix:
|
build-matrix:
|
||||||
needs: [ "path-filter" ]
|
needs: [ "path-filter" ]
|
||||||
|
|
|
||||||
23
README.md
23
README.md
|
|
@ -41,8 +41,10 @@ that is not like the other server management tools.
|
||||||
> production server, this is really just a one person effort for now and there are most certainly
|
> production server, this is really just a one person effort for now and there are most certainly
|
||||||
> bugs that I didn't discover yet.
|
> bugs that I didn't discover yet.
|
||||||
|
|
||||||
|
### Flake Module
|
||||||
|
|
||||||
Self Host Blocks is available as a flake.
|
Self Host Blocks is available as a flake.
|
||||||
To use it in your project, add the following flake input:
|
To use it in your existing project, add the following flake input:
|
||||||
|
|
||||||
```nix
|
```nix
|
||||||
inputs.selfhostblocks.url = "github:ibizaman/selfhostblocks";
|
inputs.selfhostblocks.url = "github:ibizaman/selfhostblocks";
|
||||||
|
|
@ -70,6 +72,25 @@ Then, to actually configure services, you can choose which one interests you in
|
||||||
Head over to the [matrix channel](https://matrix.to/#/#selfhostblocks:matrix.org)
|
Head over to the [matrix channel](https://matrix.to/#/#selfhostblocks:matrix.org)
|
||||||
for any remaining question, or just to say hi :)
|
for any remaining question, or just to say hi :)
|
||||||
|
|
||||||
|
### Installation From Scratch
|
||||||
|
|
||||||
|
I do recommend for this my sibling project [Skarabox][]
|
||||||
|
which bootstraps a new server and sets up a few tools:
|
||||||
|
|
||||||
|
- Creating a bootable ISO, installable on an USB key.
|
||||||
|
- [nixos-anywhere](https://github.com/nix-community/nixos-anywhere) to install NixOS headlessly.
|
||||||
|
- [disko](https://github.com/nix-community/disko) to format the drives using native ZFS encryption with remote unlocking through ssh.
|
||||||
|
- [sops-nix](https://github.com/Mic92/sops-nix) to handle secrets.
|
||||||
|
- [deploy-rs](https://github.com/serokell/deploy-rs) to deploy updates.
|
||||||
|
|
||||||
|
[Skarabox]: https://github.com/ibizaman/skarabox
|
||||||
|
|
||||||
|
### Full Example
|
||||||
|
|
||||||
|
See [full example][] in the manual.
|
||||||
|
|
||||||
|
[full example]: https://shb.skarabox.com/usage.html#usage-complete-example
|
||||||
|
|
||||||
## Server Management
|
## Server Management
|
||||||
|
|
||||||
Self Host Blocks provides a standardized configuration for [some services](https://shb.skarabox.com/services.html) provided by nixpkgs.
|
Self Host Blocks provides a standardized configuration for [some services](https://shb.skarabox.com/services.html) provided by nixpkgs.
|
||||||
|
|
|
||||||
|
|
@ -1673,9 +1673,15 @@
|
||||||
"usage": [
|
"usage": [
|
||||||
"usage.html#usage"
|
"usage.html#usage"
|
||||||
],
|
],
|
||||||
|
"usage-complete-example": [
|
||||||
|
"usage.html#usage-complete-example"
|
||||||
|
],
|
||||||
"usage-example-colmena": [
|
"usage-example-colmena": [
|
||||||
"usage.html#usage-example-colmena"
|
"usage.html#usage-example-colmena"
|
||||||
],
|
],
|
||||||
|
"usage-example-deployrs": [
|
||||||
|
"usage.html#usage-example-deployrs"
|
||||||
|
],
|
||||||
"usage-example-nixosrebuild": [
|
"usage-example-nixosrebuild": [
|
||||||
"usage.html#usage-example-nixosrebuild"
|
"usage.html#usage-example-nixosrebuild"
|
||||||
],
|
],
|
||||||
|
|
|
||||||
1350
docs/usage.md
1350
docs/usage.md
File diff suppressed because it is too large
Load diff
Binary file not shown.
|
Before Width: | Height: | Size: 206 KiB After Width: | Height: | Size: 383 KiB |
Loading…
Reference in a new issue