Fix network combinator with systemd resolved

This commit is contained in:
Alex David 2025-12-02 18:58:03 -08:00
commit eaf7e343d8
3 changed files with 74 additions and 1 deletions

View file

@ -7,6 +7,7 @@ let
runtime-deep-ro-bind
share-ns
time-zone
try-readonly
unsafe-add-raw-args
write-text
;
@ -30,6 +31,7 @@ in
(runtime-deep-ro-bind "/etc/nsswitch.conf")
(runtime-deep-ro-bind "/etc/resolv.conf")
(runtime-deep-ro-bind "/etc/ssl")
(try-readonly "/run/systemd/resolve")
(write-text "/etc/hostname" "${state.hostname}\n")
(unsafe-add-raw-args "--hostname ${escape state.hostname}")
] state