enable ipv6

This commit is contained in:
Danilo Reyes 2024-07-06 11:06:05 -06:00
parent 3cc3a378cb
commit 3c0166c2cd
3 changed files with 7 additions and 5 deletions

View File

@ -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 = {

View File

@ -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;
};

View File

@ -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 = ''