unlock: Use system-set resolvers
This commit is contained in:
parent
e7d90300f3
commit
5ea2697c50
|
@ -130,11 +130,7 @@
|
||||||
ssh \
|
ssh \
|
||||||
${lib.optionalString unlockOverV4 "-4"} \
|
${lib.optionalString unlockOverV4 "-4"} \
|
||||||
-p 2222 \
|
-p 2222 \
|
||||||
"root@$(${pkgs.dnsutils}/bin/dig \
|
"root@${targetHost}" \
|
||||||
+short \
|
|
||||||
@${if unlockOverV4 then "8.8.8.8" else "2001:4860:4860::8888"} \
|
|
||||||
${targetHost} \
|
|
||||||
${if unlockOverV4 then "A" else "AAAA"})" \
|
|
||||||
"cat > /crypt-ramfs/passphrase" < <(pass "devices/${hostname}/luks")
|
"cat > /crypt-ramfs/passphrase" < <(pass "devices/${hostname}/luks")
|
||||||
'')
|
'')
|
||||||
self.nixosConfigurations);
|
self.nixosConfigurations);
|
||||||
|
|
Loading…
Reference in a new issue