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

• Updated input 'nixpkgs':
    'github:nixos/nixpkgs/3ff0e34b1383648053bba8ed03f201d3466f90c9?narHash=sha256-CdX2Rtvp5I8HGu9swBmYuq%2BILwRxpXdJwlpg8jvN4tU%3D' (2025-07-24)
  → 'github:nixos/nixpkgs/1f08a4df998e21f4e8be8fb6fbf61d11a1a5076a?narHash=sha256-%2BjkEZxs7bfOKfBIk430K%2BtK9IvXlwzqQQnppC2ZKFj4%3D' (2025-07-29)
• Updated input 'nixpkgsMaster':
    'github:NixOS/nixpkgs/2014a8b27a90ef142462b5dfabc8e73bb95bec8b?narHash=sha256-vbjK4COEWyg8xX6GjyVEGZVIodA3DWyeqxnObyfqzas%3D' (2025-07-28)
  → 'github:NixOS/nixpkgs/eedcb0398ca492b960103c0f6413eae0d0947ac9?narHash=sha256-dMMuPj1ENyknnVt7m90uQAq26PH4j/Fs1qZ9y/Zu%2B44%3D' (2025-07-30)
• Updated input 'nur':
    'github:nix-community/NUR/0ca9aba7c440a77873111b7a52913cfaac5ddb08?narHash=sha256-OEqqcfz%2BDny%2BIWxTg/gGyf4Pr21TevNHFKxuVVo4NLs%3D' (2025-07-28)
  → 'github:nix-community/NUR/3ae985f54bc999536cee4f6a7e4802a7402c6551?narHash=sha256-2YJ6A3BIxCoFfGL6mNv%2B0ZyrgN3ZxiHFQwrKTd993zk%3D' (2025-07-30)
• Updated input 'nur/nixpkgs':
    'github:nixos/nixpkgs/7fd36ee82c0275fb545775cc5e4d30542899511d?narHash=sha256-9h7%2B4/53cSfQ/uA3pSvCaBepmZaz/dLlLVJnbQ%2BSJjk%3D' (2025-07-25)
  → 'github:nixos/nixpkgs/dc9637876d0dcc8c9e5e22986b857632effeb727?narHash=sha256-cKgvtz6fKuK1Xr5LQW/zOUiAC0oSQoA9nOISB0pJZqM%3D' (2025-07-28)
• Updated input 'vesc-tool':
    'github:vedderb/vesc_tool/16f6216c87b04db5e68071a840e3398e20ad1aad?narHash=sha256-L3d52lZpZlteZSHgSDFd%2BQ6BD24BiLH4KjBFD4Sasp4%3D' (2025-07-14)
  → 'github:vedderb/vesc_tool/f3b8c6f8c7b31420b0981448e6abb4bd5ddedbaa?narHash=sha256-r6Sxa8a2DNseWZ86vp/Wm22qP9KM7%2BZpkyRtQ1xh2hE%3D' (2025-07-30)
2025-07-30 20:56:53 +02: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 Add basic logging for powerUp and powerDown 2025-07-18 10:34:49 +02:00
modules Add git as system package 2025-07-17 03:13:52 +02:00
pkgs Update dependencies 2025-07-14 11:40:57 +02:00
users Add tio 2025-07-28 10:04:27 +02: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 Reinstall magnesium 2025-04-09 10:27:38 +02:00
flake.lock flake.lock: Update 2025-07-30 20:56:53 +02:00
flake.nix Add gg-chatmix 2025-07-14 12:03:45 +02:00
justfile Use file to unlock LUKS from usb media 2025-04-09 10:20:44 +02: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