Commit Graph

6 Commits

Author SHA1 Message Date
NAHO
a2ed7e8d88 nixos: remove optional builtins prefixes from prelude functions
Remove optional builtins prefixes from prelude functions by running:

    builtins=(
      abort
      baseNameOf
      break
      derivation
      derivationStrict
      dirOf
      false
      fetchGit
      fetchMercurial
      fetchTarball
      fetchTree
      fromTOML
      import
      isNull
      map
      null
      placeholder
      removeAttrs
      scopedImport
      throw
      toString
      true
    )

    fd \
      --exclude doc/manual/release-notes \
      --type file \
      . \
      nixos \
      --exec-batch sed --in-place --regexp-extended "
        s/\<builtins\.($(
          printf '%s\n' "${builtins[@]}" |
            paste --delimiter '|' --serial -
        ))\>/\1/g
      "

    nix fmt
2026-01-15 16:07:55 +01:00
Marcel
f73ef8f753 nixos/ifstate: load kernel modules required for networking 2025-11-29 12:37:48 +01:00
Marcel
3a0b463b32 nixos/ifstate: cleanup initrd-wireguard test 2025-11-29 12:37:47 +01:00
Marcel
7346179cb7 Revert "nixos/ifstate: remove netns so ifstate can identify interface"
This reverts commit eade8e0bcd.
2025-11-29 12:37:16 +01:00
Nico Felbinger
eade8e0bcd nixos/ifstate: remove netns so ifstate can identify interface
This test has never worked because when 'identify' is not configured,
ifstate searches for an interface with the specified name inside the
defined network namespace. However, virtualisation.interfaces cannot
place an interface into a specific network namespace, and without
identifying details (such as a MAC address or bus ID), ifstate is
unable to locate the correct interface.

Removing the network namespace avoids this problem.
2025-11-24 16:57:10 +01:00
Marcel
8d8c9633bf nixos/ifstate: init 2025-08-21 17:44:54 +02:00