No description
Find a file
Jakob Lechner 920294917b flake.lock: Update
Flake lock file updates:

• Updated input 'disko':
    'github:nix-community/disko/639d1520df9417ca2761536c3072688569e83c80?narHash=sha256-z76Q/OXLxO/RxMII3fIt/TG665DANiE2lVvnolK2lXk%3D' (2024-11-18)
  → 'github:nix-community/disko/da52cf40206d7d1a419d07640eb47b2fb9ac2c21?narHash=sha256-SBosboLvLqDv%2B7mNgRTIYDQbHE61rDDkXTJWiRX3PPo%3D' (2024-11-19)
• Updated input 'home-manager':
    'github:nix-community/home-manager/f3a2ff69586f3a54b461526e5702b1a2f81e740a?narHash=sha256-uw7K/RsYioJicV79Nl39yjtfhdfTDU2aRxnBgvFhkZ8%3D' (2024-11-17)
  → 'github:nix-community/home-manager/a46e702093a5c46e192243edbd977d5749e7f294?narHash=sha256-qjEI64RKvDxRyEarY0jTzrZMa8ebezh2DEZmJJrpVdo%3D' (2024-11-19)
• Updated input 'nix-pre-commit-hooks':
    'github:cachix/git-hooks.nix/cd1af27aa85026ac759d5d3fccf650abe7e1bbf0?narHash=sha256-vFta1uHnD29VUY4HJOO/D6p6rxyObnf%2BInnSMT4jlMU%3D' (2024-11-11)
  → 'github:cachix/git-hooks.nix/3308484d1a443fc5bc92012435d79e80458fe43c?narHash=sha256-mnTbjpdqF0luOkou8ZFi2asa1N3AA2CchR/RqCNmsGE%3D' (2024-11-19)
• Updated input 'nixpkgs':
    'github:nixos/nixpkgs/783008b28c589eb73873b764525c36cc6f61c44b?narHash=sha256-gVlLTGJNnF6GVV0PRCKoDZ8MrUdwz0QMtdX4d6Yyk5M%3D' (2024-11-18)
  → 'github:nixos/nixpkgs/23f0925292d938d0682ddddf5696e2edb1d593f7?narHash=sha256-Fhxe9Yao1b4I8uq4fZ3o9Adv%2BhtAcFL4DO18bCvOkHU%3D' (2024-11-19)
• Updated input 'nixpkgsMaster':
    'github:NixOS/nixpkgs/45533e4b16bcdafbd28eec81cc959028e8e9982c?narHash=sha256-CJ9wMq1B%2BbtL0mhPfnh3omClJddnN2qbLox5rD/jgX4%3D' (2024-11-18)
  → 'github:NixOS/nixpkgs/a254cdb551a3c095229a314a075bfcd9593b365e?narHash=sha256-3wkG87iMa13x0yGSumkC%2BGx4SNK7yWDTmolexXtW8MY%3D' (2024-11-19)
• Updated input 'nur':
    'github:nix-community/NUR/81041938c7f8e36c9e31947e7ba3baf098ffdaf8?narHash=sha256-eqT3tCnjxK7oXW3OQPZpwDCsRxYTHLtN81t47n/fSF4%3D' (2024-11-18)
  → 'github:nix-community/NUR/a2712ed4e2e98c0e86ebc074acb2af8248941cc8?narHash=sha256-83fCcCsW/f1DIBQoQfSvnp95L4WADvKTC%2BxMQFQ0RRI%3D' (2024-11-19)
• Updated input 'sops-nix':
    'github:Mic92/sops-nix/472741cf3fee089241ac9ea705bb2b9e0bfa2978?narHash=sha256-NVUTFxKrJp/hjehlF1IvkPnlRYg/O9HFVutbxOM8zNM%3D' (2024-11-17)
  → 'github:Mic92/sops-nix/e39947d0ee8e341fa7108bd02a33cdfa24a1360e?narHash=sha256-vvXx1m2Rsw7MkbKJdpcICzz4YPgZPApGKQGhNZfkhOI%3D' (2024-11-18)
2024-11-20 02:53:38 +01:00
.git-crypt Rotate git-crypt key 2024-01-31 01:39:35 +00:00
custom-utils Add port attrset 2023-11-22 14:55:28 +00:00
hosts Fix TLS certificate handling 2024-11-20 02:53:38 +01:00
modules Remove matrix-sliding-sync 2024-11-20 02:53:38 +01:00
pkgs Update to 24.11 2024-11-20 02:53:38 +01:00
users Remove qtox 2024-11-20 02:53:38 +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 custom voicemail greeting 2023-11-22 14:55:29 +00:00
.gitignore Ignore qcow2 files (QEMU disk images) 2023-02-23 19:41:15 +00:00
.sops.yaml Rotate sops gpg key 2024-01-31 01:42:56 +00:00
flake.lock flake.lock: Update 2024-11-20 02:53:38 +01:00
flake.nix Update to 24.11 2024-11-20 02:53:38 +01:00
justfile Add overlay to REPL 2024-06-14 16:26:23 +02:00
README.md Update README 2024-11-11 11:42:58 +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'

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