summaryrefslogtreecommitdiff
path: root/machines
diff options
context:
space:
mode:
authorKjetil Ørbekk <kj@orbekk.com>2020-11-08 18:23:56 -0500
committerKjetil Ørbekk <kj@orbekk.com>2020-11-08 18:24:30 -0500
commit605a2005bb92dc47556ea6e540d4d2d1c515ffdc (patch)
treed59a12381014b59baf0e12588b8364db657c4db7 /machines
parentd37a4f11e1ff414f2e9fccf4316a99d914934279 (diff)
dragon config
Diffstat (limited to 'machines')
-rw-r--r--machines/dragon.nix61
1 files changed, 31 insertions, 30 deletions
diff --git a/machines/dragon.nix b/machines/dragon.nix
index 039a947..b613998 100644
--- a/machines/dragon.nix
+++ b/machines/dragon.nix
@@ -4,7 +4,8 @@ let
in
{
imports = [
- ../config/minecraft.nix
+ ../config/router.nix
+ #../config/minecraft.nix
../config/acme-sh.nix
../config/mpd.nix
../config/borg-backup.nix
@@ -15,19 +16,19 @@ in
# ../config/hydra.nix
../config/web-server.nix
../config/cgit.nix
- ../config/mail-server.nix
+ # ../config/mail-server.nix
../config/munin-node.nix
../config/munin-master.nix
../config/vpn-server.nix
../config/terraria.nix
- ../config/pjournal.nix
+ # ../config/pjournal.nix
];
- services.pjournal = {
- enable = true;
- port = (import ../data/aliases.nix).services.pjournal.port;
- base_url = "https://journal.orbekk.com";
- };
+ # services.pjournal = {
+ # enable = true;
+ # port = (import ../data/aliases.nix).services.pjournal.port;
+ # base_url = "https://journal.orbekk.com";
+ # };
environment.systemPackages = with pkgs; [ ipmitool ];
@@ -50,11 +51,11 @@ in
boot = {
kernelParams = [ "console=tty0" ''console="ttyS0,115200n8"'' ];
- kernel.sysctl = {
- "net.ipv4.conf.all.forwarding" = true;
- "net.ipv6.conf.all.forwarding" = true;
- "net.ipv6.conf.br0.accept_ra" = 2;
- };
+ #kernel.sysctl = {
+ # "net.ipv4.conf.all.forwarding" = true;
+ # "net.ipv6.conf.all.forwarding" = true;
+ # "net.ipv6.conf.br0.accept_ra" = 2;
+ #};
loader.grub.extraConfig = ''
GRUB_TERMINAL="serial"
@@ -75,24 +76,24 @@ in
firewall.checkReversePath = "loose";
firewall.logRefusedConnections = false;
- useDHCP = false;
- interfaces.br0.useDHCP = true;
- bridges = {
- br0 = {
- interfaces = ["eno2"];
- };
- };
+ # useDHCP = false;
+ # interfaces.br0.useDHCP = true;
+ # bridges = {
+ # br0 = {
+ # interfaces = ["eno2"];
+ # };
+ # };
- dhcpcd.enable = true;
- dhcpcd.extraConfig = ''
- duid
- ipv6ra_noautoconf
- debug
- interface br0
- clientid ${duid}
- ipv6ra_noautoconf
- dhcp6
- '';
+ # dhcpcd.enable = true;
+ # dhcpcd.extraConfig = ''
+ # duid
+ # ipv6ra_noautoconf
+ # debug
+ # interface br0
+ # clientid ${duid}
+ # ipv6ra_noautoconf
+ # dhcp6
+ # '';
};
# Required to enable password authentication for one user.