bordervm static ethernet and tftp server

This commit is contained in:
Daniel Barlow 2023-02-15 20:45:44 +00:00
parent b438a0fd17
commit 9899fa91f6

View file

@ -44,6 +44,12 @@ let
ExecStart = "${pkgs.pkgsBuildBuild.go-l2tp}/bin/kpppoed -config ${conf}"; 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 = { virtualisation = {
qemu = { qemu = {
networkingOptions = []; networkingOptions = [];
@ -65,6 +71,10 @@ let
networking = { networking = {
hostName = "border"; hostName = "border";
firewall = { enable = false; }; firewall = { enable = false; };
interfaces.eth1 = {
useDHCP = false;
ipv4.addresses = [ { address = "10.0.0.1"; prefixLength = 24;}];
};
}; };
users.users.liminix = { users.users.liminix = {
isNormalUser = true; isNormalUser = true;