mirror of
https://github.com/nix-community/srvos.git
synced 2024-09-11 14:17:02 +03:00
deploy: 541ff88a1b
This commit is contained in:
parent
db53d111d9
commit
5f1d3188f1
@ -1,2 +1,2 @@
|
||||
cp -r /nix/store/wrwf6b29yxksd2rp7hfijsq1nxnkr79q-source/* .
|
||||
cp -r /nix/store/9y37m2lip8rav2bp29yzg74vqcv51k0i-source/* .
|
||||
/nix/store/p0clv6nan6bqa0cr6agmrsy7d0d29m0h-mdbook-0.4.26/bin/mdbook build --dest-dir "$out"
|
||||
|
6
env-vars
6
env-vars
@ -3,10 +3,10 @@ declare -x HOME="/homeless-shelter"
|
||||
declare -x HOST_PATH="/nix/store/lljkbrqh1nkayprky3lrigj0fbxj35rv-coreutils-9.1/bin:/nix/store/gmhwrs2qs86dfc4v347lni2nfwfi1hdp-findutils-4.9.0/bin:/nix/store/dangi3s2jn47ll5n77bhhgp1fbdjlrqw-diffutils-3.8/bin:/nix/store/7ywpyk7z2vlk6k8b1gkhmfxg0082r8yk-gnused-4.9/bin:/nix/store/5kzf7riyyqqh3mpdawpnfkpawarifxwr-gnugrep-3.7/bin:/nix/store/jq7v3l01q0461bf283y3na9ljg9l1064-gawk-5.2.1/bin:/nix/store/bm9cby2wqmdb9sv7zs4hgw0k59y6p147-gnutar-1.34/bin:/nix/store/iww7rl6rlv1jm8p12a6mc96f3iqnki6p-gzip-1.12/bin:/nix/store/s2217ynn463r3jj3yy0ci66j1cnfapkm-bzip2-1.0.8-bin/bin:/nix/store/hzbivzf4fn6dl97lsj0w6xzxq2fni2yi-gnumake-4.4/bin:/nix/store/qqa28hmysc23yy081d178jfd9a1yk8aw-bash-5.2-p15/bin:/nix/store/48zscadjm3k10rhjdq5h26mjfwcx13bw-patch-2.7.6/bin:/nix/store/ma9lzyxvg5y8l55vnl3fcpd9h34lf759-xz-5.4.1-bin/bin:/nix/store/pv7b1r34c6lq9jclccpm5ihsh2pg64q1-file-5.43/bin"
|
||||
declare -x NIX_BUILD_CORES="2"
|
||||
declare -x NIX_BUILD_TOP="/build"
|
||||
declare -x NIX_CFLAGS_COMPILE=" -frandom-seed=56jx1d1n0m"
|
||||
declare -x NIX_CFLAGS_COMPILE=" -frandom-seed=gsy7br9v4i"
|
||||
declare -x NIX_ENFORCE_NO_NATIVE="1"
|
||||
declare -x NIX_ENFORCE_PURITY="1"
|
||||
declare -x NIX_LDFLAGS="-rpath /nix/store/56jx1d1n0mhgkpbnlwhyx3srb2hmb1m9-srvos-docs/lib64 -rpath /nix/store/56jx1d1n0mhgkpbnlwhyx3srb2hmb1m9-srvos-docs/lib "
|
||||
declare -x NIX_LDFLAGS="-rpath /nix/store/gsy7br9v4idvc7bv3x2z9qbsr3wpk08z-srvos-docs/lib64 -rpath /nix/store/gsy7br9v4idvc7bv3x2z9qbsr3wpk08z-srvos-docs/lib "
|
||||
declare -x NIX_LOG_FD="2"
|
||||
declare -x NIX_SSL_CERT_FILE="/no-cert-file.crt"
|
||||
declare -x NIX_STORE="/nix/store"
|
||||
@ -45,7 +45,7 @@ declare -x enableParallelChecking="1"
|
||||
declare -x mesonFlags=""
|
||||
declare -x name="srvos-docs"
|
||||
declare -x nativeBuildInputs=""
|
||||
declare -x out="/nix/store/56jx1d1n0mhgkpbnlwhyx3srb2hmb1m9-srvos-docs"
|
||||
declare -x out="/nix/store/gsy7br9v4idvc7bv3x2z9qbsr3wpk08z-srvos-docs"
|
||||
declare -x outputs="out"
|
||||
declare -x passAsFile="buildCommand"
|
||||
declare -x patches=""
|
||||
|
@ -142,7 +142,40 @@
|
||||
|
||||
<div id="content" class="content">
|
||||
<main>
|
||||
<h1 id="general"><a class="header" href="#general">General</a></h1>
|
||||
<h2 id="general"><a class="header" href="#general">General</a></h2>
|
||||
<p>Used to define the type of machine.</p>
|
||||
<ul>
|
||||
<li><code>server</code>:
|
||||
<ul>
|
||||
<li>Use this for headless systems that are remotely managed via ssh</li>
|
||||
<li>Includes everything from common</li>
|
||||
<li>Disables desktop features like sound</li>
|
||||
<li>Defaults to UTC</li>
|
||||
<li>Enables ssh</li>
|
||||
<li>Configures watchdog for reboot</li>
|
||||
<li>Sets up sudo without password</li>
|
||||
<li>...</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><code>desktop</code>:
|
||||
<ul>
|
||||
<li>Mostly based on common but also includes some optimization for useful for interactive usage</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><code>common</code>:
|
||||
<ul>
|
||||
<li>Use if you are unsure if your nixos module will be used on server or desktop</li>
|
||||
<li>Better nix-daemon defaults</li>
|
||||
<li>Better serial console support</li>
|
||||
<li>Colored package diffs on nixos-rebuild</li>
|
||||
<li>Use systemd in initrd by default and networkd as a backend for the
|
||||
Networking module</li>
|
||||
<li>Do not block on networkd/networkmanager's online target</li>
|
||||
<li>Better zfs defaults</li>
|
||||
<li>Add well-known ssh git ssh keys to the git configuration</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
</main>
|
||||
|
||||
|
@ -142,7 +142,14 @@
|
||||
|
||||
<div id="content" class="content">
|
||||
<main>
|
||||
<h1 id="hardware"><a class="header" href="#hardware">Hardware</a></h1>
|
||||
<h2 id="hardware"><a class="header" href="#hardware">Hardware</a></h2>
|
||||
<p>NixOS hardware configurations that we know about.</p>
|
||||
<ul>
|
||||
<li><code>hardware-amazon</code>: Amazon AWS virtual machines</li>
|
||||
<li><code>hardware-hetzner-cloud</code>: Hardware and network defaults for Hetzner virtual machine</li>
|
||||
<li><code>hardware-hetzner-amd</code>: Hardware and network defaults for Hetzner bare-metal servers for AMD and Intel cpus.</li>
|
||||
<li><code>hardware-hetzner-intel</code>: "</li>
|
||||
</ul>
|
||||
|
||||
</main>
|
||||
|
||||
|
@ -142,7 +142,16 @@
|
||||
|
||||
<div id="content" class="content">
|
||||
<main>
|
||||
<h1 id="mixins"><a class="header" href="#mixins">Mixins</a></h1>
|
||||
<h2 id="mixins"><a class="header" href="#mixins">Mixins</a></h2>
|
||||
<p>Config extensions for a given machine.</p>
|
||||
<ul>
|
||||
<li><code>mixins-cloud-init</code> enables <a href="https://cloud-init.io">cloud-init</a></li>
|
||||
<li><code>mixins-systemd-boot</code> configure systemd-boot as bootloader</li>
|
||||
<li><code>mixins-telegraf</code> enables a generic telegraf configuration. See <a href="https://github.com/Mic92/dotfiles/blob/master/nixos/eva/modules/prometheus/alert-rules.nix">Mic's dotfiles</a>
|
||||
for monitoring rules targeting this telegraf configuration.</li>
|
||||
<li><code>mixins-nginx</code> recommended nginx settings</li>
|
||||
<li><code>mixins-trusted-nix-caches</code> list of trust-worthy public binary caches</li>
|
||||
</ul>
|
||||
|
||||
</main>
|
||||
|
||||
|
@ -142,7 +142,11 @@
|
||||
|
||||
<div id="content" class="content">
|
||||
<main>
|
||||
<h1 id="roles"><a class="header" href="#roles">Roles</a></h1>
|
||||
<h2 id="roles"><a class="header" href="#roles">Roles</a></h2>
|
||||
<p>Designed to take over a machine with the given role.</p>
|
||||
<ul>
|
||||
<li><code>roles-github-actions-runner</code> configures GitHub actions runner on a machine</li>
|
||||
</ul>
|
||||
|
||||
</main>
|
||||
|
||||
|
61
print.html
61
print.html
@ -175,10 +175,63 @@ example to deploy a GitHub Action runner on Hetzner:</p>
|
||||
</ul>
|
||||
<div style="break-before: page; page-break-before: always;"></div><h2 id="nixos-modules"><a class="header" href="#nixos-modules">NixOS modules</a></h2>
|
||||
<p>All modules are defined in the repo's top-level <code>default.nix</code></p>
|
||||
<div style="break-before: page; page-break-before: always;"></div><h1 id="general"><a class="header" href="#general">General</a></h1>
|
||||
<div style="break-before: page; page-break-before: always;"></div><h1 id="hardware"><a class="header" href="#hardware">Hardware</a></h1>
|
||||
<div style="break-before: page; page-break-before: always;"></div><h1 id="mixins"><a class="header" href="#mixins">Mixins</a></h1>
|
||||
<div style="break-before: page; page-break-before: always;"></div><h1 id="roles"><a class="header" href="#roles">Roles</a></h1>
|
||||
<div style="break-before: page; page-break-before: always;"></div><h2 id="general"><a class="header" href="#general">General</a></h2>
|
||||
<p>Used to define the type of machine.</p>
|
||||
<ul>
|
||||
<li><code>server</code>:
|
||||
<ul>
|
||||
<li>Use this for headless systems that are remotely managed via ssh</li>
|
||||
<li>Includes everything from common</li>
|
||||
<li>Disables desktop features like sound</li>
|
||||
<li>Defaults to UTC</li>
|
||||
<li>Enables ssh</li>
|
||||
<li>Configures watchdog for reboot</li>
|
||||
<li>Sets up sudo without password</li>
|
||||
<li>...</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><code>desktop</code>:
|
||||
<ul>
|
||||
<li>Mostly based on common but also includes some optimization for useful for interactive usage</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><code>common</code>:
|
||||
<ul>
|
||||
<li>Use if you are unsure if your nixos module will be used on server or desktop</li>
|
||||
<li>Better nix-daemon defaults</li>
|
||||
<li>Better serial console support</li>
|
||||
<li>Colored package diffs on nixos-rebuild</li>
|
||||
<li>Use systemd in initrd by default and networkd as a backend for the
|
||||
Networking module</li>
|
||||
<li>Do not block on networkd/networkmanager's online target</li>
|
||||
<li>Better zfs defaults</li>
|
||||
<li>Add well-known ssh git ssh keys to the git configuration</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
<div style="break-before: page; page-break-before: always;"></div><h2 id="hardware"><a class="header" href="#hardware">Hardware</a></h2>
|
||||
<p>NixOS hardware configurations that we know about.</p>
|
||||
<ul>
|
||||
<li><code>hardware-amazon</code>: Amazon AWS virtual machines</li>
|
||||
<li><code>hardware-hetzner-cloud</code>: Hardware and network defaults for Hetzner virtual machine</li>
|
||||
<li><code>hardware-hetzner-amd</code>: Hardware and network defaults for Hetzner bare-metal servers for AMD and Intel cpus.</li>
|
||||
<li><code>hardware-hetzner-intel</code>: "</li>
|
||||
</ul>
|
||||
<div style="break-before: page; page-break-before: always;"></div><h2 id="mixins"><a class="header" href="#mixins">Mixins</a></h2>
|
||||
<p>Config extensions for a given machine.</p>
|
||||
<ul>
|
||||
<li><code>mixins-cloud-init</code> enables <a href="https://cloud-init.io">cloud-init</a></li>
|
||||
<li><code>mixins-systemd-boot</code> configure systemd-boot as bootloader</li>
|
||||
<li><code>mixins-telegraf</code> enables a generic telegraf configuration. See <a href="https://github.com/Mic92/dotfiles/blob/master/nixos/eva/modules/prometheus/alert-rules.nix">Mic's dotfiles</a>
|
||||
for monitoring rules targeting this telegraf configuration.</li>
|
||||
<li><code>mixins-nginx</code> recommended nginx settings</li>
|
||||
<li><code>mixins-trusted-nix-caches</code> list of trust-worthy public binary caches</li>
|
||||
</ul>
|
||||
<div style="break-before: page; page-break-before: always;"></div><h2 id="roles"><a class="header" href="#roles">Roles</a></h2>
|
||||
<p>Designed to take over a machine with the given role.</p>
|
||||
<ul>
|
||||
<li><code>roles-github-actions-runner</code> configures GitHub actions runner on a machine</li>
|
||||
</ul>
|
||||
<div style="break-before: page; page-break-before: always;"></div><h1 id="installation"><a class="header" href="#installation">Installation</a></h1>
|
||||
<ul>
|
||||
<li><a href="./installation/hetzner_cloud.html">Hetzner Cloud</a></li>
|
||||
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user