No description
Find a file
Kaare Hoff Skovgaard 5826c78a68
Some checks failed
/ check (push) Failing after 1m29s
/ systems (push) Failing after 22s
/ terraform-providers (push) Successful in 4m6s
/ rust-packages (push) Successful in 1m55s
/ dev-shell (push) Successful in 1m39s
More fixes
2025-07-15 08:13:26 +02:00
.forgejo/workflows Begin creating monitoring.kaareskovgaard.net 2025-07-11 12:40:45 +02:00
assets Convert some older nixos-system code 2025-07-08 23:43:17 +02:00
nix More fixes 2025-07-15 08:13:26 +02:00
rust Get basic nginx and acme setup working 2025-07-11 00:38:31 +02:00
.envrc Lots more updates 2025-07-06 22:37:16 +02:00
.gitignore Convert some older nixos-system code 2025-07-08 23:43:17 +02:00
desktop.qcow2 Begin testing bootstrapping of vault authentication 2025-07-09 23:53:42 +02:00
flake.lock Begin moving openbao and authentik server to new setup 2025-07-14 23:34:02 +02:00
flake.nix Begin moving openbao and authentik server to new setup 2025-07-14 23:34:02 +02:00
README.md Get basic nginx and acme setup working 2025-07-11 00:38:31 +02:00

Nix Machines

This is my repository for all my various machines running NixOS (or Using Nix Darwin).

It has been created as an attempt at unifying all the various provisioning of software/cloud resources that must happen, such that for every instance there's a unified set of commands to run.

When running on a desktop machine, simply running nixos-install as per usual should suffice.

Servers

To provision the cloud resources needed, and install NixOS, the following can be run:

nix run '.#create-instance' -- <hostname>

This will run the provision.pre terraform code to ensure the cloud resources are created as needed, on either hetzner or openstack. It should also select the appropriate secrets backend to fetch secrets from. In general every server should use vault (OpenBAO) as the backend, except for the server hosting OpenBAO. Then it will install NixOS.

When making changes to eg. the approle needed, and needing to provision the instance again (but not installing NixOS again, as that won't work), run:

nix run '.#provision-instance' -- <hostname>

To update the NixOS config on an instance:

nix run '.#update-instance` -- <hostname>

To delete the resources again run:

nix run '.#destroy-instance' -- <hostname>

Secrets

To transfer the secrets needed for OpenTofu from Bitwarden to OpenBAO/Vault run:

nix run '.#bitwarden-to-vault'