using resolvedctl instead of hardcoded dns

This commit is contained in:
Julien Malka 2023-06-15 22:58:09 +02:00
parent 05d5c8bc1c
commit daefee832f
Signed by: Luj
GPG key ID: 6FC74C847011FD83

View file

@ -60,14 +60,6 @@
prefixLength = 120;
}];
networking.nameservers = [ "100.100.45.5" "9.9.9.9" ];
environment.etc."resolv.conf" = with lib; with pkgs; {
source = writeText "resolv.conf" ''
${concatStringsSep "\n" (map (ns: "nameserver ${ns}") config.networking.nameservers)}
options edns0
'';
};
networking.hostId = "fbb334ae";
services.zfs.autoSnapshot.enable = true;
services.zfs.autoScrub.enable = true;