No description
Find a file
Jakob Lechner 7a5d7c20ef Fix ipv6 prefix delegation
Prefix delegation was broken after Vodafone swapped the plastic router.
I'm not sure if this change is required tbh but I'll leave it like that
as it works now.
2025-12-10 17:19:18 +01:00
.git-crypt Rotate git-crypt key 2024-01-31 01:39:35 +00:00
custom-utils Fix duplicate port check 2025-04-16 22:54:29 +02:00
hosts Fix ipv6 prefix delegation 2025-12-10 17:19:18 +01:00
modules Use only post-quantum resistant algorithms 2025-12-09 16:20:54 +01:00
nix-cache Add nix-cache 2025-09-03 22:17:28 +02:00
pkgs Bump to Python 3.13 2025-12-09 15:31:25 +01:00
users Bump tree-style-tab version 2025-12-01 10:54:44 +01:00
.editorconfig Add config for .nix files 2022-04-27 11:02:38 +00:00
.envrc Use flakes 2021-11-17 09:33:48 +00:00
.gitattributes Add TvProxy 2025-09-22 22:52:39 +02:00
.gitignore Ignore qcow2 files (QEMU disk images) 2023-02-23 19:41:15 +00:00
.sops.yaml Reinstall magnesium 2025-04-09 10:27:38 +02:00
flake.lock flake.lock: Update 2025-12-09 15:32:40 +01:00
flake.nix Rename runCommandNoCC 2025-12-01 10:54:44 +01:00
justfile Replace sudo flag 2025-12-01 10:54:44 +01:00
README.md Add instructions how to build a system config 2025-01-11 19:24:15 +01:00

jalr's NixOS Configuration

Install a new host

This installs nixos on host somehost:

NixOS Anywhere

nix run github:nix-community/nixos-anywhere -- --flake .#<somehost> root@<somehost>

The traditional way

nix-shell -p nixUnstable --run 'nixos-install --flake https://gitlab.jalr.de/jalr/nixos-configuration#somehost --no-channel-copy'

Build a configuration

nix build .#nixosConfigurations.iron.config.system.build.toplevel

setting up sops

Get the host key and convert it.

ssh-keyscan -t ed25519 $host | ssh-to-age

Then add the key to .sops.yaml

If the key changed, you might want to run

sops updatekeys hosts/$host/secrets.yaml

nix repl

start an interactive environment for evaluating Nix expressions

$ nix repl

nix-repl> a=builtins.getFlake (toString ./.)
$ nix repl

nix-repl> :lf .#

Import GPG public key

gpg --card-edit
gpg/card> fetch
gpg --edit-key $key
gpg> trust
Your decision? 5

Debugging boot issues

  1. Add rd.systemd.debug_shell kernel parameter
  2. Press CTRL+ALT+F9 to switch to root shell