Compare commits

..

2 Commits

Author SHA1 Message Date
illustris
b9117bf8ad add utils 2026-03-09 16:36:43 +05:30
illustris
682430ca60 vpn: init 2026-03-09 11:43:48 +05:30

View File

@@ -98,6 +98,7 @@
curl
vim
nix-mcp.packages.x86_64-linux.default
tmux
];
microvm = {
@@ -175,6 +176,40 @@
})];
};
vpn = {
vcpu = 2;
mem = 2047;
extraModules = [({ pkgs, ... }: {
imports = [ self.nixosModules.storeOverlay ];
# Mount ovpn configs read-only
microvm.shares = [
{
proto = "9p";
tag = "ovpn";
source = "/home/illustris/Documents/ovpn/air";
mountPoint = "/etc/openvpn/air";
readOnly = true;
}
];
# OpenVPN client service
services.openvpn.servers.airvpn = {
config = ''
config /etc/openvpn/air/AirVPN_United-States_UDP-443.ovpn
'';
autoStart = true;
};
environment.systemPackages = with pkgs; [
openvpn
rclone
tmux
nmap
];
})];
};
crash = {};
};
};