2022-02-06 00:06:26 +00:00
|
|
|
{ lib, pkgs, inputs, ... }:
|
2022-02-13 13:10:21 +00:00
|
|
|
{
|
|
|
|
fileSystems = {
|
|
|
|
"/persist" = {
|
|
|
|
device = "/dev/disk/by-label/persist";
|
|
|
|
fsType = "ext4";
|
|
|
|
neededForBoot = true;
|
2022-02-11 01:15:24 +00:00
|
|
|
};
|
2022-02-13 13:10:21 +00:00
|
|
|
};
|
2022-02-11 01:15:24 +00:00
|
|
|
|
2022-02-13 13:10:21 +00:00
|
|
|
networking = { };
|
2022-02-12 01:53:57 +00:00
|
|
|
|
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-12 01:53:57 +00:00
|
|
|
};
|
2022-02-06 00:06:26 +00:00
|
|
|
};
|
2022-02-13 13:10:21 +00:00
|
|
|
server.enable = true;
|
|
|
|
};
|
|
|
|
}
|