From 26d738da75fbc6959291b72db48fc6994a3801ab Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Fri, 25 Sep 2015 15:21:10 +0200 Subject: ipv6 config --- ymir.nix | 52 +++++++++++++++++++++++++++++++++------------------- 1 file changed, 33 insertions(+), 19 deletions(-) diff --git a/ymir.nix b/ymir.nix index 29d8d99d..c57e4407 100644 --- a/ymir.nix +++ b/ymir.nix @@ -25,6 +25,39 @@ zsh ]; + networking = { + firewall = { + enable = true; + allowPing = true; + allowedTCPPorts = [ 22 + ]; + allowedUDPPortRanges = [ { from = 60000; to = 61000; } # mosh + ]; + }; + enableIPv6 = true; + defaultGateway6 = "fe80::1"; + interfaces = { + enp0s3 = { + name = "enp0s3"; + ip6 = { + address = "2a03:4000:6:d004::"; + prefixLength = "64"; + }; + }; + }; + }; + + users.extraUsers.root = let + template = (import users/gkleen.nix); + in { + inherit (template) shell; + openssh.authorizedKeys.keyFiles = template.openssh.authorizedKeys.keyFiles; + }; + + services.ntp = { + enable = false; + }; + # List services that you want to enable: services.openssh = { @@ -38,27 +71,8 @@ ''; }; - networking.firewall = { - enable = true; - allowPing = true; - allowedTCPPorts = [ 22 - ]; - allowedUDPPortRanges = [ { from = 60000; to = 61000; } # mosh - ]; - }; - - services.ntp = { - enable = false; - }; - services.chrony = { enable = true; }; - users.extraUsers.root = let - template = (import users/gkleen.nix); - in { - inherit (template) shell; - openssh.authorizedKeys.keyFiles = template.openssh.authorizedKeys.keyFiles; - }; } -- cgit v1.2.3