Enable CLATD by default
This commit is contained in:
parent
fe775e2fad
commit
dba9e23c90
3 changed files with 12 additions and 18 deletions
|
@ -1,10 +1,5 @@
|
||||||
{ config, lib, ... }:
|
{ lib, ... }:
|
||||||
{
|
{
|
||||||
services.clatd = {
|
|
||||||
enable = true;
|
|
||||||
settings.clat-v6-addr = "${config.custom.gua_pref}11::c1";
|
|
||||||
};
|
|
||||||
|
|
||||||
imports = [
|
imports = [
|
||||||
../../shared/base.nix
|
../../shared/base.nix
|
||||||
../../shared/hardware/nvidia.nix
|
../../shared/hardware/nvidia.nix
|
||||||
|
|
|
@ -25,8 +25,6 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
networking = {
|
networking = {
|
||||||
networkmanager.settings."connection"."ipv4.dhcp-ipv6-only-preferred" = 1;
|
|
||||||
|
|
||||||
wg-quick.interfaces = {
|
wg-quick.interfaces = {
|
||||||
wg0 = {
|
wg0 = {
|
||||||
autostart = true;
|
autostart = true;
|
||||||
|
@ -50,10 +48,7 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
services.clatd = {
|
services.clatd.settings.clat-v6-addr = "${config.custom.gua_pref}ff::c${config.custom.home_wg_suffix}";
|
||||||
enable = true;
|
|
||||||
settings.clat-v6-addr = "${config.custom.gua_pref}ff::c${config.custom.home_wg_suffix}";
|
|
||||||
};
|
|
||||||
|
|
||||||
systemd.services = {
|
systemd.services = {
|
||||||
"wg-quick-wg0" = {
|
"wg-quick-wg0" = {
|
||||||
|
|
|
@ -94,7 +94,7 @@
|
||||||
set -s escape-time 0
|
set -s escape-time 0
|
||||||
'';
|
'';
|
||||||
|
|
||||||
######################################## SSH configuration #########################
|
######################################## SSH configuration ######################################
|
||||||
services.openssh = {
|
services.openssh = {
|
||||||
enable = true;
|
enable = true;
|
||||||
settings.PasswordAuthentication = false;
|
settings.PasswordAuthentication = false;
|
||||||
|
@ -128,9 +128,6 @@
|
||||||
};
|
};
|
||||||
time.timeZone = "Europe/Helsinki";
|
time.timeZone = "Europe/Helsinki";
|
||||||
|
|
||||||
######################################## Memory management ######################################
|
|
||||||
zramSwap.enable = true;
|
|
||||||
|
|
||||||
######################################## Housekeeping ###########################################
|
######################################## Housekeeping ###########################################
|
||||||
system.autoUpgrade = {
|
system.autoUpgrade = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
@ -166,17 +163,24 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
######################################## Misc. ##################################################
|
######################################## Networking. ############################################
|
||||||
networking = {
|
networking = {
|
||||||
# Easiest to use and most distros use this by default.
|
# Easiest to use and most distros use this by default.
|
||||||
networkmanager = {
|
networkmanager = {
|
||||||
enable = true;
|
enable = true;
|
||||||
# Use EUI-64 addresses by default, so that addresses are predictable
|
# Use EUI-64 addresses by default, so that addresses are predictable
|
||||||
settings."connection"."ipv6.addr-gen-mode" = 0;
|
settings."connection" = {
|
||||||
|
"ipv4.dhcp-ipv6-only-preferred" = 1;
|
||||||
|
"ipv6.addr-gen-mode" = 0;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
# IPv6 privacy addresses for outgoing traffic
|
# IPv6 privacy addresses for outgoing traffic
|
||||||
tempAddresses = "default";
|
tempAddresses = "default";
|
||||||
};
|
};
|
||||||
|
services.clatd.enable = true;
|
||||||
|
|
||||||
|
######################################## Misc. ##################################################
|
||||||
|
zramSwap.enable = true;
|
||||||
|
|
||||||
users.mutableUsers = false; # Force all user management to happen throught nix-files
|
users.mutableUsers = false; # Force all user management to happen throught nix-files
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue