retiolum: ipv6 only hosts list if no ipv4 is configured

This commit is contained in:
Jörg Thalheim 2022-03-08 15:27:42 +01:00
parent 123a9748c7
commit aa0b13421d
No known key found for this signature in database

View File

@ -50,7 +50,10 @@ in {
'';
};
networking.extraHosts = builtins.readFile ../../etc.hosts;
networking.extraHosts = if (cfg.ipv4 == null) then
builtins.readFile ../../etc.hosts-v6only
else
builtins.readFile ../../etc.hosts;
environment.systemPackages = [
config.services.tinc.networks.${netname}.package