Skip to content

Commit

Permalink
docs: update README
Browse files Browse the repository at this point in the history
  • Loading branch information
GTrunSec committed Oct 19, 2023
1 parent cede906 commit 889e8b9
Show file tree
Hide file tree
Showing 5 changed files with 160 additions and 5 deletions.
81 changes: 77 additions & 4 deletions docs/README.org
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
:PROPERTIES:
:ID: fdd55059-5f5c-4407-b4c3-c5366cd6a898
:header-args: :noweb tangle :comments noweb :exports both
:STARTUP: noinlineimages
:PRJ-DIR: .
:END:
#+TITLE: README
Expand All @@ -10,16 +11,88 @@



#+BEGIN_SRC d2 :file images/kubernetes_on_premise.png :flags --theme 200 :exports both :tangle (concat (org-entry-get nil "PRJ-DIR" t) "/kubernetes_on_premise.d2")
#+BEGIN_SRC d2 :file images/omnibus.png :flags --sketch --theme 200 :exports both :tangle (concat (org-entry-get nil "PRJ-DIR" t) "/omnibus.d2")
# !/usr/bin/env d2 --theme 200

system1 -> system2
flake: Flake {
libPops: lib(pops) {
library
exporter: {
pops
}
flakeOutputs

exporter -> flakeOutputs
}

pops: extension system {
outputs: outputs {
packages
}

libPops.flakeOutputs -> outputs
libPops.exporter.library -> outputs.lib: without pops interface
libPops.exporter.pops -> outputs.pops
}

units: units {
nixos: {
nixosModules
homeProfiles
homeModules
homeProfiles
homeModules
}
flake-parts: {
modules
profiles
}
devshell: {
modules
profiles
}
configs: {
treefmt
}
}
extensions: extensions system {
APIs: APIs {
addLoadExtender
addLoadExtenders
addExporters
}
}

flops: flops {
haumea: {
type: {
default
nixosModules
nixosProfiles
evalModules
}
}
flake: {
inputs
call-flake
}
}

user: User {shape: person}

direction: right

extensions <-> user
flake.outputs.pops -> extensions
units -> flake.libPops.exporter.pops: loading
flake.libPops.exporter.pops <- flops.haumea: loader
flops.haumea -> extensions.APIs.addLoadExtender
flops.haumea -> extensions.APIs.addLoadExtenders

flops.flake -> subflake
flops.flake -> call-flake: extended inputs

flake.outputs.pops -> extensions: extensions interface
#+END_SRC

#+RESULTS:
[[file:images/kubernetes_on_premise.png]]
[[file:images/omnibus.png]]
Binary file removed docs/images/kubernetes_on_premise.png
Binary file not shown.
Binary file added docs/images/omnibus.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
82 changes: 82 additions & 0 deletions docs/omnibus.d2
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
# [[file:README.org::+BEGIN_SRC d2 :file images/omnibus.png :flags --sketch --theme 200 :exports both :tangle (concat (org-entry-get nil "PRJ-DIR" t) "/omnibus.d2")][No heading:1]]
# !/usr/bin/env d2 --theme 200

flake: Flake {
libPops: lib(pops) {
library
exporter: {
pops
}
flakeOutputs

exporter -> flakeOutputs
}

outputs: outputs {
packages
}

libPops.flakeOutputs -> outputs
libPops.exporter.library -> outputs.lib: without pops interface
libPops.exporter.pops -> outputs.pops
}

units: units {
nixos: {
nixosModules
homeProfiles
homeModules
homeProfiles
homeModules
}
flake-parts: {
modules
profiles
}
devshell: {
modules
profiles
}
configs: {
treefmt
}
}
extensions: extensions system {
APIs: APIs {
addLoadExtender
addLoadExtenders
addExporters
}
}

flops: flops {
haumea: {
type: {
default
nixosModules
nixosProfiles
evalModules
}
}
flake: {
inputs
call-flake
}
}

user: User {shape: person}

direction: right

extensions <-> user
flake.outputs.pops -> extensions
units -> flake.libPops.exporter.pops: loading
flake.libPops.exporter.pops <- flops.haumea: loader
flops.haumea -> extensions.APIs.addLoadExtender
flops.haumea -> extensions.APIs.addLoadExtenders

flops.flake -> subflake
flops.flake -> call-flake: extended inputs

flake.outputs.pops -> extensions: extensions interface
# No heading:1 ends here
2 changes: 1 addition & 1 deletion templates/hivebus/.envrc
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ watch_file ./nix/hive/flake.nix ./nix/hive/flake.lock
# shellcheck disable=SC1090
source "$(fetchurl "https://raw.githubusercontent.com/gtrunsec/direnv/main/lib" "sha256-tuMA8WGkwcYq9V3MtlN6xdVvKd2YkdEpdK4ZyAN6VDM=")"

registry="$PRJ_ROOT/nix/hive#__std"
registry="$PRJ_ROOT/templates/hivebus/nix/hive#__std"

use envreload //repo/shells/default

0 comments on commit 889e8b9

Please sign in to comment.