retiolum: ipv6 only hosts list if no ipv4 is configured
This commit is contained in:
parent
123a9748c7
commit
aa0b13421d
@ -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 = [
|
environment.systemPackages = [
|
||||||
config.services.tinc.networks.${netname}.package
|
config.services.tinc.networks.${netname}.package
|
||||||
|
Loading…
Reference in New Issue
Block a user