openvpn-init
This commit is contained in:
16
flake.lock
generated
16
flake.lock
generated
@@ -18,6 +18,21 @@
|
||||
"url": "https://git.mtgmonkey.net/Andromeda/nook"
|
||||
}
|
||||
},
|
||||
"auto-openvpn": {
|
||||
"locked": {
|
||||
"lastModified": 1756224566,
|
||||
"narHash": "sha256-SW/LESixI4cmSCR8uk3ZtLJpv4G4qkzDlP2EAUcp9to=",
|
||||
"owner": "fin444",
|
||||
"repo": "auto-openvpn.nix",
|
||||
"rev": "cbbfdc0b203633f32511d1060c13e4f64c2f0bc5",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "fin444",
|
||||
"repo": "auto-openvpn.nix",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"blobs": {
|
||||
"flake": false,
|
||||
"locked": {
|
||||
@@ -330,6 +345,7 @@
|
||||
"root": {
|
||||
"inputs": {
|
||||
"andromeda-nook": "andromeda-nook",
|
||||
"auto-openvpn": "auto-openvpn",
|
||||
"blog": "blog",
|
||||
"jank-client": "jank-client",
|
||||
"math-project": "math-project",
|
||||
|
||||
@@ -5,6 +5,7 @@
|
||||
noshell.url = "github:viperML/noshell";
|
||||
spacebar-server.url = "github:spacebarchat/server";
|
||||
simple-nixos-mailserver.url = "gitlab:simple-nixos-mailserver/nixos-mailserver/master";
|
||||
auto-openvpn.url = "github:fin444/auto-openvpn.nix";
|
||||
andromeda-nook.url = "git+https://git.mtgmonkey.net/Andromeda/nook";
|
||||
blog.url = "git+https://git.mtgmonkey.net/Andromeda/blog";
|
||||
jank-client.url = "git+https://git.mtgmonkey.net/Andromeda/jank-client-fork";
|
||||
@@ -17,6 +18,7 @@
|
||||
noshell,
|
||||
spacebar-server,
|
||||
simple-nixos-mailserver,
|
||||
auto-openvpn,
|
||||
andromeda-nook,
|
||||
jank-client,
|
||||
math-project,
|
||||
@@ -32,6 +34,7 @@
|
||||
inherit system;
|
||||
inherit spacebar-server;
|
||||
inherit simple-nixos-mailserver;
|
||||
inherit auto-openvpn;
|
||||
inherit math-project;
|
||||
inherit andromeda-nook;
|
||||
inherit blog;
|
||||
@@ -50,6 +53,7 @@
|
||||
./services/math-project.nix
|
||||
./services/spacebar.nix
|
||||
./services/translate.nix
|
||||
./services/vpn.nix
|
||||
|
||||
jank-client.nixosModules.x86_64-linux.default
|
||||
math-project.nixosModules.x86_64-linux.default
|
||||
|
||||
11
services/vpn.nix
Normal file
11
services/vpn.nix
Normal file
@@ -0,0 +1,11 @@
|
||||
{auto-openvpn, ...}: {
|
||||
imports = [
|
||||
auto-openvpn.nixosModules.auto-openvpn
|
||||
];
|
||||
services.auto-openvpn = {
|
||||
enable = true;
|
||||
interface = "ens18";
|
||||
address = "173.249.5.230";
|
||||
users = ["handy" "lenovo"];
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user