enable ipv6
This commit is contained in:
parent
3cc3a378cb
commit
3c0166c2cd
@ -13,9 +13,9 @@
|
||||
kernelModules = [ "kvm-intel" ];
|
||||
kernel.sysctl = {
|
||||
"vm.swappiness" = 80;
|
||||
"net.ipv6.conf.all.disable_ipv6" = 1;
|
||||
"net.ipv6.conf.lo.disable_ipv6" = 1;
|
||||
"net.ipv6.conf.default.disable_ipv6" = 1;
|
||||
"net.ipv6.conf.all.disable_ipv6" = 0;
|
||||
"net.ipv6.conf.lo.disable_ipv6" = 0;
|
||||
"net.ipv6.conf.default.disable_ipv6" = 0;
|
||||
};
|
||||
loader = {
|
||||
efi = {
|
||||
|
||||
@ -1,8 +1,10 @@
|
||||
|
||||
{ config, pkgs, lib, ... }: {
|
||||
imports = [ ./base.nix ];
|
||||
config = {
|
||||
sops.secrets = {
|
||||
cloudflare-api.sopsFile = ../../secrets/env.yaml;
|
||||
|
||||
dns = {
|
||||
sopsFile = ../../secrets/env.yaml;
|
||||
owner = config.users.users.jawz.name;
|
||||
@ -13,7 +15,7 @@
|
||||
enable = true;
|
||||
ipv4 = true;
|
||||
ipv6 = false;
|
||||
proxied = true;
|
||||
proxied = false;
|
||||
domains = [ config.my.domainSecret ];
|
||||
apiTokenFile = config.sops.secrets.cloudflare-api.path;
|
||||
};
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
options.my.services.network.enable = lib.mkEnableOption "enable";
|
||||
config = lib.mkIf config.my.services.network.enable {
|
||||
networking = {
|
||||
enableIPv6 = false;
|
||||
enableIPv6 = true;
|
||||
firewall.enable = true;
|
||||
networkmanager.enable = true;
|
||||
extraHosts = ''
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user