Skip to content

Commit

Permalink
Merge staging-next-23.05 into staging-23.05
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] authored Oct 24, 2023
2 parents 6a99ae4 + a8c5c98 commit fe9a9bb
Show file tree
Hide file tree
Showing 5 changed files with 440 additions and 422 deletions.
29 changes: 18 additions & 11 deletions nixos/modules/system/boot/networkd.nix
Original file line number Diff line number Diff line change
Expand Up @@ -512,17 +512,24 @@ let
(assertValueOneOf "Unmanaged" boolValues)
(assertInt "Group")
(assertRange "Group" 0 2147483647)
(assertValueOneOf "RequiredForOnline" (boolValues ++ [
"missing"
"off"
"no-carrier"
"dormant"
"degraded-carrier"
"carrier"
"degraded"
"enslaved"
"routable"
]))
(assertValueOneOf "RequiredForOnline" (boolValues ++ (
let
# https://freedesktop.org/software/systemd/man/networkctl.html#missing
operationalStates = [
"missing"
"off"
"no-carrier"
"dormant"
"degraded-carrier"
"carrier"
"degraded"
"enslaved"
"routable"
];
operationalStateRanges = concatLists (imap0 (i: min: map (max: "${min}:${max}") (drop i operationalStates)) operationalStates);
in
operationalStates ++ operationalStateRanges
)))
(assertValueOneOf "RequiredFamilyForOnline" [
"ipv4"
"ipv6"
Expand Down
Loading

0 comments on commit fe9a9bb

Please sign in to comment.