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

• Updated input 'home-manager':
    'github:nix-community/home-manager/54b2879ce622d44415e727905925e21b8f833a98?narHash=sha256-aAZNbGcWrVRZgWgkQbkabSGcDVRDMgON4BipMy69gvI%3D' (2025-08-26)
  → 'github:nix-community/home-manager/07fc025fe10487dd80f2ec694f1cd790e752d0e8?narHash=sha256-Xd1vOeY9ccDf5VtVK12yM0FS6qqvfUop8UQlxEB%2BgTQ%3D' (2025-08-31)
• Updated input 'nixpkgs':
    'github:nixos/nixpkgs/4e7667a90c167f7a81d906e5a75cba4ad8bee620?narHash=sha256-TH1SfSP523QI7kcPiNtMAEuwZR3Jdz0MCDXPs7TS8uo%3D' (2025-08-26)
  → 'github:nixos/nixpkgs/b4c2c57c31e68544982226d07e4719a2d86302a8?narHash=sha256-aGnd4AHIYCWQKChAkHPpX%2BYYCt7pA6y2LFFA/s8q0wQ%3D' (2025-08-31)
• Updated input 'nixpkgsMaster':
    'github:NixOS/nixpkgs/a9eab3607519584fcb6422b3c732d0d17383dfd8?narHash=sha256-zvTg8vcLxDP1W7wLO772X2dn%2BslXWjxsIuYucTNUIpM%3D' (2025-08-28)
  → 'github:NixOS/nixpkgs/2c774e13d1909ce5caaf837ac8ece10a604e54ae?narHash=sha256-%2BaQzkZ8a8xoHCK%2BBmMd8I2F4L6W1FFr8wswtc9O/N9A%3D' (2025-09-01)
• Updated input 'nur':
    'github:nix-community/NUR/09f4740f899b695cd483fda85ed0e8f61a2e48cc?narHash=sha256-NS6%2B7f2wGsBtn/8a1xMwMkbMPOqJGhhojVDze/VQpvI%3D' (2025-08-28)
  → 'github:nix-community/NUR/effb8c7ab9fbfba86d31703a6101469489ab9df8?narHash=sha256-JsqhycxNEPDtfDtqGFSdslmbN7t9rClj/wxDWhrUAoM%3D' (2025-09-01)
• Updated input 'nur/nixpkgs':
    'github:nixos/nixpkgs/8a6d5427d99ec71c64f0b93d45778c889005d9c2?narHash=sha256-cr748nSmpfvnhqSXPiCfUPxRz2FJnvf/RjJGvFfaCsM%3D' (2025-08-27)
  → 'github:nixos/nixpkgs/d7600c775f877cd87b4f5a831c28aa94137377aa?narHash=sha256-tlOn88coG5fzdyqz6R93SQL5Gpq%2Bm/DsWpekNFhqPQk%3D' (2025-08-30)
• Updated input 'vesc-tool':
    'github:vedderb/vesc_tool/629731f5af483a8d3c737aebc7f0135c77da5677?narHash=sha256-P1EU5FwcvM%2BaFUzw/Zsld3OOyWXVKsCzB7aYToXjCP8%3D' (2025-08-21)
  → 'github:vedderb/vesc_tool/3d3d6e23634033c04cbf3afedf8b324360ebc34d?narHash=sha256-EYUpnHxOfOZNvXEk/6vAI/EbvovfHtwwxJ2XJ%2BNPYVU%3D' (2025-08-31)
2025-09-01 10:21:38 +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 zram 2025-08-15 14:20:11 +02:00
modules Fix keyboard layout for gdm 2025-08-15 14:20:11 +02:00
pkgs Update dependencies 2025-07-14 11:40:57 +02:00
users Add libreoffice 2025-08-15 14:20:11 +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-09-01 10:21:38 +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