Skip to content

Commit

Permalink
+ docs trival
Browse files Browse the repository at this point in the history
  • Loading branch information
oluceps committed Nov 14, 2024
1 parent 699328e commit c804a1c
Show file tree
Hide file tree
Showing 8 changed files with 87 additions and 6 deletions.
14 changes: 8 additions & 6 deletions doc/src/SUMMARY.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
# Summary

<!-- - [different from other scheme](./diff.md) -->

- [Prerequisits](prerequisits.md)
- [setup](setup.md)
- [Intro](./intro.md)
- [Prerequisits](./prerequisits.md)
- [setup](./setup.md)
- [flake Option](./flake-option.md)
- [nixos Option](./nixos-option.md)
- [Advanced](advanced.md)
- [FaQ](faq.md)
- [Nix Apps](./nix-apps.md)
- [Workflow](./workflow.md)
- [Development](./develop.md)
- [Advanced](./advanced.md)
- [FaQ](./faq.md)
6 changes: 6 additions & 0 deletions doc/src/advanced.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
```
/|、
(˙、.7
|、~ヽ
じしf_,)ノ
```
25 changes: 25 additions & 0 deletions doc/src/develop.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# Development

## DevShell

```bash
nix develop
```

## Test

For testing basic functions with virtual machine:

```bash
nix run github:nix-community/nixos-anywhere -- --flake .#tester --vm-test
```

Run full test with `just full-test`

## Format

This repo follows `nixfmt-rfc-style` style, reformat with running `nixfmt .`.

## Lint

Lint with statix.
5 changes: 5 additions & 0 deletions doc/src/faq.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Frequent Asked Questions

1. rebooting deploy failed with could not found ssh private key, but it indeed just there.

Check if using `root on tmpfs`, and modify [hostKeys](https://oluceps.github.io/vaultix/nixos-option.html#hostkeys) path to Absolute path string to your REAL private key location (not bind mounted or symlinked etc.)
13 changes: 13 additions & 0 deletions doc/src/intro.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Vaultix

### Secret management for NixOS.

This project is highly inspired by [agenix-rekey](https://github.com/oddlama/agenix-rekey) and [sops-nix](https://github.com/Mic92/sops-nix). Based on rust [age](https://docs.rs/age/latest/age) crate.

+ Support Template
+ Age Plugin Compatible
+ Support PIV Card (Yubikey)
+ Support identity with passphrase
+ Compatible with `userborn` module option
+ No Bash

23 changes: 23 additions & 0 deletions doc/src/nix-apps.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Nix Apps

Provided user friendly cli tools:


## renc

This is needed every time the host key or secret content changed.

The wrapped vaultix will decrypt cipher content to plaintext and encrypt it with target host public key, finally stored in `cache`.

```bash
nix run .#vaultix.app.x86_64-linux.renc
```

## edit

This will decrypt and open file with `$EDITOR`. Will encrypt it after editing finished.

```bash
nix run .#vaultix.app.x86_64-linux.edit -- ./secrets/some.age
```

2 changes: 2 additions & 0 deletions doc/src/workflow.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# TODO
Common used workflow with vaultix
5 changes: 5 additions & 0 deletions justfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,8 @@ clean-exist-deploy:
sudo umount /run/vaultix.d
sudo rm -r /run/vaultix.d
sudo rm -r /run/vaultix
full-test:
#!/usr/bin/env nu
cargo test
cargo fuzz run --all-features fuzz_parser_1 -- -max_len=256 -runs=16777216
nix run github:nix-community/nixos-anywhere -- --flake .#tester --vm-test

0 comments on commit c804a1c

Please sign in to comment.