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" ]; kernelModules = [ "kvm-intel" ];
kernel.sysctl = { kernel.sysctl = {
"vm.swappiness" = 80; "vm.swappiness" = 80;
"net.ipv6.conf.all.disable_ipv6" = 1; "net.ipv6.conf.all.disable_ipv6" = 0;
"net.ipv6.conf.lo.disable_ipv6" = 1; "net.ipv6.conf.lo.disable_ipv6" = 0;
"net.ipv6.conf.default.disable_ipv6" = 1; "net.ipv6.conf.default.disable_ipv6" = 0;
}; };
loader = { loader = {
efi = { efi = {

View File

@ -1,8 +1,10 @@
{ config, pkgs, lib, ... }: { { config, pkgs, lib, ... }: {
imports = [ ./base.nix ]; imports = [ ./base.nix ];
config = { config = {
sops.secrets = { sops.secrets = {
cloudflare-api.sopsFile = ../../secrets/env.yaml; cloudflare-api.sopsFile = ../../secrets/env.yaml;
dns = { dns = {
sopsFile = ../../secrets/env.yaml; sopsFile = ../../secrets/env.yaml;
owner = config.users.users.jawz.name; owner = config.users.users.jawz.name;
@ -13,7 +15,7 @@
enable = true; enable = true;
ipv4 = true; ipv4 = true;
ipv6 = false; ipv6 = false;
proxied = true; proxied = false;
domains = [ config.my.domainSecret ]; domains = [ config.my.domainSecret ];
apiTokenFile = config.sops.secrets.cloudflare-api.path; apiTokenFile = config.sops.secrets.cloudflare-api.path;
}; };

View File

@ -2,7 +2,7 @@
options.my.services.network.enable = lib.mkEnableOption "enable"; options.my.services.network.enable = lib.mkEnableOption "enable";
config = lib.mkIf config.my.services.network.enable { config = lib.mkIf config.my.services.network.enable {
networking = { networking = {
enableIPv6 = false; enableIPv6 = true;
firewall.enable = true; firewall.enable = true;
networkmanager.enable = true; networkmanager.enable = true;
extraHosts = '' extraHosts = ''