catarina: host bonfire documentation
This commit is contained in:
parent
92936676e8
commit
dafac6a76b
34
README.md
34
README.md
@ -7,46 +7,22 @@
|
|||||||
<p align="center">
|
<p align="center">
|
||||||
<img src="https://img.shields.io/badge/nix%20flake-gray.svg?logo=nixos" alt="nix-flake"/>
|
<img src="https://img.shields.io/badge/nix%20flake-gray.svg?logo=nixos" alt="nix-flake"/>
|
||||||
<a href="https://bonfire.cachix.org"><img src="https://img.shields.io/badge/cachix-bonfire-orange.svg" alt="bonfire-cachix" /></a>
|
<a href="https://bonfire.cachix.org"><img src="https://img.shields.io/badge/cachix-bonfire-orange.svg" alt="bonfire-cachix" /></a>
|
||||||
|
<a href="https://vcs.elnafo.ru/L-Nafaryus/bonfire/actions?workflow=nix.yml"><img src="https://vcs.elnafo.ru/L-Nafaryus/bonfire/actions/workflows/nix.yml/badge.svg?branch=master&event=push" alt="nix-check" /></a>
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<p align="center">
|
<p align="center">
|
||||||
<strong><em>Lit another Nix derivation</em></strong>
|
<strong><em>Lit another Nix derivation</em></strong>
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
> This is a private configuration and experiment with Nix and NixOS. Formally
|
Bonfire is a slowly snowballing Nix flake with a collection of packages, NixOS modules and other cool things.
|
||||||
> it's a more than just a dotfiles in cause of packages, modules, templates and
|
Of course it contains personal NixOS configurations that use all of these stuff.
|
||||||
> etc. Discover the current repository on your own risk.
|
|
||||||
|
|
||||||
# Hints
|
The main goal of this project is to keep the structure as simple as possible but use the power of Nix language on maximum (a huge field of experiments, huh?).
|
||||||
|
|
||||||
* Update and push inputs:
|
In any case, if you are already here, a great solution would be to first check the documentation for the project, where you can find useful information.
|
||||||
```sh
|
|
||||||
nix flake update
|
|
||||||
nix flake archive --json \
|
|
||||||
| jq -r '.path,(.inputs|to_entries[].value.path)' \
|
|
||||||
| cachix push bonfire
|
|
||||||
```
|
|
||||||
|
|
||||||
* Build and push package:
|
|
||||||
```sh
|
|
||||||
nix build --json .#package \
|
|
||||||
| jq -r '.[].outputs | to_entries[].value' \
|
|
||||||
| cachix push bonfire
|
|
||||||
```
|
|
||||||
|
|
||||||
* Rebuild system with git submodules:
|
|
||||||
```sh
|
|
||||||
nixos-rebuild switch --flake ".?submodules=1#astora"
|
|
||||||
```
|
|
||||||
|
|
||||||
* Rebuild remote system from local system with git submodules:
|
|
||||||
```sh
|
|
||||||
nixos-rebuild switch --flake ".?submodules=1#catarina" --build-host l-nafaryus@astora --target-host l.nafaryus@catarina --use-remote-sudo
|
|
||||||
```
|
|
||||||
|
|
||||||
# License
|
# License
|
||||||
|
|
||||||
|
|
||||||
**bonfire** is licensed under the [MIT License](LICENSE).
|
**bonfire** is licensed under the [MIT License](LICENSE).
|
||||||
|
|
||||||
> MIT license does not apply to the packages built by **Nix**, merely to the files
|
> MIT license does not apply to the packages built by **Nix**, merely to the files
|
||||||
|
@ -117,11 +117,10 @@ in {
|
|||||||
globalRedirect = "elnafo.ru";
|
globalRedirect = "elnafo.ru";
|
||||||
};
|
};
|
||||||
|
|
||||||
"media.elnafo.ru" = {
|
"bonfire.elnafo.ru" = {
|
||||||
forceSSL = true;
|
forceSSL = true;
|
||||||
useACMEHost = "elnafo.ru";
|
useACMEHost = "elnafo.ru";
|
||||||
http2 = true;
|
locations."/".root = "${bonfire-pkgs.bonfire-docs}";
|
||||||
locations."/".proxyPass = "http://127.0.0.1:8096";
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
@ -11,6 +11,6 @@ default-theme = "macchiato"
|
|||||||
preferred-dark-theme = "macchiato"
|
preferred-dark-theme = "macchiato"
|
||||||
additional-css = ["./theme/catppuccin.css"]
|
additional-css = ["./theme/catppuccin.css"]
|
||||||
no-section-label = true
|
no-section-label = true
|
||||||
git-repository-url = "https://github.com/L-Nafaryus/bonfire"
|
git-repository-url = "https://vcs.elnafo.ru/L-Nafaryus/bonfire"
|
||||||
git-repository-icon = "fa-github"
|
git-repository-icon = "fa-git"
|
||||||
cname = "elnafo.ru"
|
cname = "elnafo.ru"
|
||||||
|
@ -12,7 +12,7 @@ let
|
|||||||
links = [
|
links = [
|
||||||
{
|
{
|
||||||
hostname = "vcs-elnafo";
|
hostname = "vcs-elnafo";
|
||||||
url = "https://vcs.elnafo.ru/L-Nafaryus/bonfire/blob/master";
|
url = "https://vcs.elnafo.ru/L-Nafaryus/bonfire/src/branch/master";
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
hostname = "github";
|
hostname = "github";
|
||||||
@ -31,7 +31,7 @@ let
|
|||||||
# skip external declarations
|
# skip external declarations
|
||||||
lib.singleton declaration;
|
lib.singleton declaration;
|
||||||
|
|
||||||
nixosModules = (import modulesPath { inherit lib; check = false; });
|
nixosModules = (import modulesPath { inherit lib; self = bonfire; check = false; });
|
||||||
|
|
||||||
evaluatedModules = lib.evalModules {
|
evaluatedModules = lib.evalModules {
|
||||||
modules = nixosModules.modules ++ [ nixosModules.configModule ];
|
modules = nixosModules.modules ++ [ nixosModules.configModule ];
|
||||||
|
@ -2,10 +2,6 @@
|
|||||||
|
|
||||||
[Introduction](README.md)
|
[Introduction](README.md)
|
||||||
|
|
||||||
- [Getting started](getting-started/README.md)
|
|
||||||
- [Stable Nix](getting-started/stable-nix.md)
|
|
||||||
- [Flakes](getting-started/flakes.md)
|
|
||||||
|
|
||||||
- [Packages](packages/README.md)
|
- [Packages](packages/README.md)
|
||||||
- [packages](packages/packages.md)
|
- [packages](packages/packages.md)
|
||||||
|
|
||||||
@ -14,7 +10,5 @@
|
|||||||
|
|
||||||
- [FAQ](faq.md)
|
- [FAQ](faq.md)
|
||||||
|
|
||||||
- [Changelog](NEWS.md)
|
- [Contributing](contributing.md)
|
||||||
|
|
||||||
- [Contributing](CONTRIBUTING.md)
|
|
||||||
|
|
||||||
|
5
packages/bonfire-docs/src/contributing.md
Normal file
5
packages/bonfire-docs/src/contributing.md
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
# Contributing
|
||||||
|
|
||||||
|
Just contribute and maybe there will be a contribution policy, maybe not. Nothing complicated, the same rules as everyone else, **just do it**.
|
||||||
|
|
||||||
|
Bonfire's main source is [Elnafo VCS](https://vcs.elnafo.ru/L-Nafaryus/bonfire), but you can also create issues on [GitHub](https://github.com/L-Nafaryus/bonfire).
|
32
packages/bonfire-docs/src/faq.md
Normal file
32
packages/bonfire-docs/src/faq.md
Normal file
@ -0,0 +1,32 @@
|
|||||||
|
# Frequently asked questions and hints
|
||||||
|
|
||||||
|
* How to update and push flake inputs:
|
||||||
|
|
||||||
|
```sh
|
||||||
|
nix flake update
|
||||||
|
nix flake archive --json \
|
||||||
|
| jq -r '.path,(.inputs|to_entries[].value.path)' \
|
||||||
|
| cachix push bonfire
|
||||||
|
```
|
||||||
|
|
||||||
|
* How to build and push flake package:
|
||||||
|
|
||||||
|
```sh
|
||||||
|
nix build --json .#package \
|
||||||
|
| jq -r '.[].outputs | to_entries[].value' \
|
||||||
|
| cachix push bonfire
|
||||||
|
```
|
||||||
|
|
||||||
|
* How to rebuild system with git submodules:
|
||||||
|
|
||||||
|
```sh
|
||||||
|
sudo nixos-rebuild switch --flake ".?submodules=1#astora"
|
||||||
|
```
|
||||||
|
|
||||||
|
* How to rebuild remote system from local system with git submodules:
|
||||||
|
|
||||||
|
```sh
|
||||||
|
nixos-rebuild switch --flake ".?submodules=1#catarina" --build-host l-nafaryus@astora --target-host l.nafaryus@catarina --use-remote-sudo
|
||||||
|
```
|
||||||
|
|
||||||
|
|
Loading…
x
Reference in New Issue
Block a user