nixfiles/boxes/colony.nix

30 lines
512 B
Nix
Raw Normal View History

2022-02-13 17:44:14 +00:00
{ lib, pkgs, ... }:
2022-02-13 13:10:21 +00:00
{
fileSystems = {
"/persist" = {
device = "/dev/disk/by-label/persist";
fsType = "ext4";
neededForBoot = true;
};
2022-02-13 13:10:21 +00:00
};
2022-02-13 13:10:21 +00:00
networking = { };
2022-02-13 13:10:21 +00:00
my = {
firewall = {
trustedInterfaces = [ "blah" ];
nat = {
externalInterface = "eth0";
forwardPorts = [
{
proto = "tcp";
sourcePort = 2222;
destination = "127.0.0.1:22";
}
];
};
2022-02-06 00:06:26 +00:00
};
2022-02-13 13:10:21 +00:00
server.enable = true;
};
}