Move VPN config location, add JDC VPN config

This commit is contained in:
Evie Litherland-Smith 2024-08-05 13:54:37 +01:00
parent 57e6fbec8e
commit 80430d5aaa
5 changed files with 18 additions and 6 deletions

View file

@ -0,0 +1,5 @@
host = vpn.jetdata.eu
port = 943
username = elitherl
set-dns = 0
set-routes = 0

View file

@ -1,3 +1,5 @@
host = vpn.ukaea.uk host = vpn.ukaea.uk
port = 943 port = 943
username = elitherl username = elitherl
set-dns = 1
set-routes = 1

View file

@ -0,0 +1,7 @@
{ pkgs, ... }:
{
home.packages = [
(pkgs.writeShellScriptBin "ukaea-vpn-connect" "sudo ${pkgs.openfortivpn}/bin/openfortivpn -c ${./ukaea-vpn.conf}")
(pkgs.writeShellScriptBin "jetdata-vpn-connect" "sudo ${pkgs.openfortivpn}/bin/openfortivpn -c ${./jetdata-vpn.conf}")
];
}

View file

@ -1,2 +0,0 @@
pkgs:
(pkgs.writeShellScriptBin "ukaea-vpn-connect" "sudo ${pkgs.openfortivpn}/bin/openfortivpn -c ${./ukaea-vpn.conf}")

View file

@ -5,11 +5,11 @@
... ...
}: }:
{ {
imports = [ ./default.nix ]; imports = [
home.packages = [ ./default.nix
pkgs.twinkle ./openfortivpn/ukaea.nix
(import ./scripts/ukaea-vpn.nix pkgs)
]; ];
home.packages = [ pkgs.twinkle ];
programs.git.userEmail = config.accounts.email.accounts.outlook.address; programs.git.userEmail = config.accounts.email.accounts.outlook.address;
accounts.email.accounts = { accounts.email.accounts = {
proton.primary = lib.mkForce false; proton.primary = lib.mkForce false;