Apply treefmt

This commit is contained in:
Fabian Hauser 2025-03-25 14:10:54 +02:00
parent b2395ce611
commit b2c240e87f
86 changed files with 374 additions and 456 deletions

View file

@ -1,4 +1,4 @@
{ config, pkgs, ... }:
{ ... }:
{
imports = [

View file

@ -1,4 +1,4 @@
{ config, pkgs, ... }:
{ ... }:
{
fileSystems."/" = {

View file

@ -1,4 +1,4 @@
{ config, pkgs, ... }:
{ config, ... }:
let
meta = config.qois.meta;

View file

@ -1,17 +1,16 @@
# Host: Cyprianspitz
## Operations {#_operations}
## Operations {#\_operations}
Reboot requires passphrase.
``` bash
```bash
# Get HDD Password:
sops decrypt --extract '["system"]["hdd"]' private/nixos-configurations/cyprianspitz/secrets.sops.yaml
ssh -p 8223 root@calanda.plessur-ext.net.qo.is
```
Direct remote ssh access:
```
@ -24,8 +23,6 @@ TODO
- [Mainboard Manual](docs/z790m-itx-wifi.pdf)
### Top Overview
![](docs/top-view.jpg)

View file

@ -1,4 +1,4 @@
{ pkgs, config, ... }:
{ config, ... }:
{
qois.backup-server = {

View file

@ -1,6 +1,4 @@
{
config,
pkgs,
lib,
...
}:

View file

@ -1,4 +1,4 @@
{ config, pkgs, ... }:
{ ... }:
{
qois.vpn-server.enable = true;
}

View file

@ -1,4 +1,4 @@
{ config, pkgs, ... }:
{ ... }:
{
imports = [

View file

@ -1,4 +1,4 @@
{ config, pkgs, ... }:
{ config, ... }:
let
meta = config.qois.meta;

View file

@ -1,4 +1,4 @@
{ config, pkgs, ... }:
{ pkgs, ... }:
{
virtualisation.libvirtd = {
enable = true;

View file

@ -1,5 +1,4 @@
{
config,
pkgs,
lib,
...

View file

@ -1,4 +1,4 @@
{ config, pkgs, ... }:
{ ... }:
{
imports = [

View file

@ -1,4 +1,4 @@
{ config, pkgs, ... }:
{ config, ... }:
{

View file

@ -1,4 +1,4 @@
{ config, pkgs, ... }:
{ ... }:
{

View file

@ -1,4 +1,4 @@
{ config, pkgs, ... }:
{ config, ... }:
{
imports = [

View file

@ -2,7 +2,6 @@
## Setting up new static sites
Generate ssh key for deployment:
```bash

View file

@ -1,4 +1,4 @@
{ config, pkgs, ... }:
{ pkgs, ... }:
{
imports = [ ];

View file

@ -1,4 +1,4 @@
{ config, pkgs, ... }:
{ ... }:
{
imports = [

View file

@ -1,4 +1,4 @@
{ config, pkgs, ... }:
{ config, ... }:
{

View file

@ -1,10 +1,10 @@
# Host: Lindberg
## Operations {#_operations}
## Operations {#\_operations}
Reboot requires passphrase (see pass `host/lindberg/hdd_luks`)
``` bash
```bash
ssh -p 2222 root@lindberg.riedbach-ext.net.qo.is
```
@ -12,7 +12,6 @@ ssh -p 2222 root@lindberg.riedbach-ext.net.qo.is
- [Mainboard Manual](docs/X570Pro4-mainboard-manual.pdf)
### Front / Back
#### Front Overview

View file

@ -1,4 +1,4 @@
{ config, pkgs, ... }:
{ ... }:
{
imports = [ ./loadbalancer.nix ];

View file

@ -1,7 +1,4 @@
{
config,
pkgs,
lib,
...
}:

View file

@ -1,4 +1,4 @@
{ config, pkgs, ... }:
{ ... }:
{
qois.backup-client.includePaths = [ "/mnt/data" ];

View file

@ -1,4 +1,4 @@
{ config, pkgs, ... }:
{ ... }:
{
imports = [

View file

@ -1,4 +1,4 @@
{ config, pkgs, ... }:
{ config, ... }:
let
meta = config.qois.meta;

View file

@ -1,4 +1,4 @@
{ config, pkgs, ... }:
{ pkgs, ... }:
{
virtualisation.libvirtd = {
enable = true;

View file

@ -3,8 +3,8 @@
## Prepare Remote Machine
1. Boot nixos installer image
2. Set a root password: `sudo passwd root`
3. Get host ip to connect to ssh with `ip a`
1. Set a root password: `sudo passwd root`
1. Get host ip to connect to ssh with `ip a`
## Verify configuration
@ -12,7 +12,7 @@
## Installation
```bash
````bash
nix develop
# Set according to what we want
@ -60,11 +60,11 @@ sops exec-file --no-fifo --filename secret.key private/nixos-configurations/$REM
--disk-encryption-keys /run/secrets/system/hdd.key <(yq --raw-output '.system.hdd' {}) \
--disk-encryption-keys /run/secrets/system/initrd-ssh-key <(yq --raw-output '.system.\"initrd-ssh-key\"' {})
"
```
````
## Post-Setup
* Add backplane-vpn pubkey to `network-virtual.nix` configuration with
- Add backplane-vpn pubkey to `network-virtual.nix` configuration with
```bash
wg pubkey < /secrets/wireguard/private/backplane
```

View file

@ -1,7 +1,7 @@
# Operations {#_operations}
# Operations {#\_operations}
Reboot requires passphrase (see pass `host/stompert/hdd_luks`)
``` bash
```bash
ssh -p 2222 root@stompert.eem-ext.net.qo.is
```

View file

@ -2,7 +2,7 @@
# your system. Help is available in the configuration.nix(5) man page
# and in the NixOS manual (accessible by running nixos-help).
{ config, pkgs, ... }:
{ ... }:
{
imports = [