forked from DGNum/liminix
bordervm static ethernet and tftp server
This commit is contained in:
parent
b438a0fd17
commit
9899fa91f6
1 changed files with 10 additions and 0 deletions
10
default.nix
10
default.nix
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue