pinwheel/test-vm: Move development of ppp.pm-site to test-vm
This commit is contained in:
@@ -40,7 +40,6 @@ in
|
|||||||
};
|
};
|
||||||
vm.enable = true;
|
vm.enable = true;
|
||||||
scripts.enable = true;
|
scripts.enable = true;
|
||||||
pppdotpm-site.enable = false;
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,13 +1,17 @@
|
|||||||
{ pkgs, ... }:
|
{ pkgs, ... }:
|
||||||
{
|
{
|
||||||
imports = [];
|
imports = [
|
||||||
|
./ppp.pm-site.nix
|
||||||
|
];
|
||||||
|
|
||||||
config = {
|
config = {
|
||||||
boot.kernelPackages = pkgs.linuxPackages_latest;
|
boot.kernelPackages = pkgs.linuxPackages_latest;
|
||||||
|
|
||||||
networking.hostName = "test-vm";
|
networking.hostName = "test-vm";
|
||||||
|
|
||||||
mod = {};
|
mod = {
|
||||||
|
pppdotpm-site.enable = true;
|
||||||
|
};
|
||||||
|
|
||||||
users.users.a = {
|
users.users.a = {
|
||||||
isNormalUser = true;
|
isNormalUser = true;
|
||||||
|
|||||||
@@ -17,6 +17,20 @@ in
|
|||||||
domain = "ppp.pm.local";
|
domain = "ppp.pm.local";
|
||||||
};
|
};
|
||||||
|
|
||||||
networking.extraHosts = "127.0.0.1 ppp.pm.local";
|
networking = {
|
||||||
|
firewall.allowedTCPPorts = [ 80 ];
|
||||||
|
};
|
||||||
|
|
||||||
|
virtualisation.vmVariant = {
|
||||||
|
virtualisation = {
|
||||||
|
forwardPorts = [
|
||||||
|
{
|
||||||
|
from = "host";
|
||||||
|
host.port = 8080;
|
||||||
|
guest.port = 80;
|
||||||
|
}
|
||||||
|
];
|
||||||
|
};
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user