From 9899fa91f67bd3fe3ff048a33c87819c694efc11 Mon Sep 17 00:00:00 2001 From: Daniel Barlow Date: Wed, 15 Feb 2023 20:45:44 +0000 Subject: [PATCH] bordervm static ethernet and tftp server --- default.nix | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/default.nix b/default.nix index db86606..959bbe7 100644 --- a/default.nix +++ b/default.nix @@ -44,6 +44,12 @@ let ExecStart = "${pkgs.pkgsBuildBuild.go-l2tp}/bin/kpppoed -config ${conf}"; }; }; + systemd.services.tufted = { + wantedBy = [ "multi-user.target" ]; + serviceConfig = { + ExecStart = "${pkgs.pkgsBuildBuild.tufted}/bin/tufted /home/liminix/liminix"; + }; + }; virtualisation = { qemu = { networkingOptions = []; @@ -65,6 +71,10 @@ let networking = { hostName = "border"; firewall = { enable = false; }; + interfaces.eth1 = { + useDHCP = false; + ipv4.addresses = [ { address = "10.0.0.1"; prefixLength = 24;}]; + }; }; users.users.liminix = { isNormalUser = true;