!VhzbGHamdfMiGxpXyg:robins.wtf

NixOS Incus and LXC

46 Members
lxc, lxd, incus discussions related to NixOS16 Servers

Load older messages


SenderMessageTime
4 Aug 2025
@adam:robins.wtfadamcstephensseems worth a try03:05:52
@adam:robins.wtfadamcstephenswould be nice if you could provide a one-time key during a "known" reboot03:07:59
@hexa:lossy.networkhexaexactly03:09:05
@hexa:lossy.networkhexabut what I need is probably more like … check daily whether running and booted kernel mismatch and do the kexec dance03:09:44
@hexa:lossy.networkhexathat can use a persistent key to the luks volumes that is root-owned03:10:25
@hexa:lossy.networkhexa* that could use a persistent key to the luks volumes that is root-owned03:10:29
@hexa:lossy.networkhexaon lobsters someone wrote03:10:51
@hexa:lossy.networkhexa

When you’re root user, you can extract the unlocked LUKS main key from RAM and can use that to add a key.

03:10:52
@hexa:lossy.networkhexa😬03:11:02
@hexa:lossy.networkhexawondering how easy that is03:11:08
@adam:robins.wtfadamcstephens

By default, if systemd-boot is used and no kernel was loaded manually using kexec -l before, systemd will load the kernel specified in the default boot loader entry. For example, to reboot into the newer kernel after a system update, you may simply run:

03:11:34
@adam:robins.wtfadamcstephens so if you nixos-rebuild boot, i guess you can just run systemctl kexec 03:11:54
@hexa:lossy.networkhexalol03:12:14
@hexa:lossy.networkhexanixos be blessed03:12:20
@hexa:lossy.networkhexastill needs the prepared initrd03:12:31
@hexa:lossy.networkhexaif that works I'll give up all my remaining legacy boot boxes03:13:02
@hexa:lossy.networkhexawhich are hetzner vms mostly, because they only do efi for arm03:13:27
@hexa:lossy.networkhexaok, so 5 am03:13:34
@hexa:lossy.networkhexalet that be a tomorrow job?03:13:37
@adam:robins.wtfadamcstephensyeah :)03:13:41
@hexa:lossy.networkhexaπŸ‘‹03:13:46
@hexa:lossy.networkhexaimage.png
Download image.png
16:33:45
@hexa:lossy.networkhexaso everything goes reasonably quick, except the cuda machine πŸ™‚ 16:34:15
@adam:robins.wtfadamcstephensnot surprised. i need to split out my runs to be a bit more visible, but it's definitely the cuda packages that take all the time16:44:15
@adam:robins.wtfadamcstephenshow are you matrixing the configs into jobs? manually?16:44:51
@hexa:lossy.networkhexayeah16:45:38
@hexa:lossy.networkhexawhen I created this I didn't find a way to codegen that at runtime16:45:52
@hexa:lossy.networkhexa
name: "Build NixOS configurations"
on:
  pull_request:
    paths:
      - .forgejo/workflows/build.yml
      - flake.lock
      - '**.nix'
  push:
    branches:
      - master
    paths:
      - .forgejo/worflows/build.yml
      - flake.lock
      - '**.nix'
  workflow_dispatch:

jobs:
  build:
    runs-on: native
    strategy:
      matrix:
        host:
          - name: eris
            system: aarch64-linux
          - name: ganymede
            system: x86_64-linux
          - name: helios
            system: x86_64-linux
          - name: io
            system: x86_64-linux
          - name: juno
            system: x86_64-linux
          - name: meduna
            system: x86_64-linux
          - name: pallas
            system: aarch64-linux
    steps:
    - uses: actions/checkout@v4
    - name: Configure attic cache
      run: |
        attic login "${{ secrets.ATTIC_CACHE }}" "${{ secrets.ATTIC_ENDPOINT }}" "${{ secrets.ATTIC_TOKEN}}"
    - name: Configure Nix-Community CUDA cache
      run: |
        cachix use nix-community
      if: matrix.host.name == 'meduna'
    - name: Build system closure
      run: |
          nix run \
            --inputs-from . \
            nixpkgs#nix-fast-build \
            -- \
            --eval-workers 4 \
            --systems "${{ matrix.host.system }}" \
            --attic-cache "${{ secrets.ATTIC_CACHE }}" \
            --no-nom \
            --flake ".#nixosConfigurations.${{ matrix.host.name }}.config.system.build.toplevel"
16:46:27
@adam:robins.wtfadamcstephensyeah i don't think there is a way16:53:28
@hexa:lossy.networkhexaif there is prior art we should file a feature request with forgejo17:02:51

Show newer messages


Back to Room ListRoom Version: 10