Remove lgs vpn and wlan

This commit is contained in:
SebastianStork 2024-06-19 17:51:12 +02:00
parent 3c8edc5ff2
commit 5fac577437
7 changed files with 4 additions and 52 deletions

View file

@ -3,7 +3,6 @@
./flatpak.nix
./vm.nix
./wlan.nix
./vpn.nix
./comma.nix
./sops.nix
./bluetooth.nix

View file

@ -1,34 +0,0 @@
{ config, lib, ... }:
{
options.myConfig.vpn.lgs.enable = lib.mkEnableOption "";
config = lib.mkIf config.myConfig.vpn.lgs.enable {
sops.secrets = {
"vpn/lgs/crt" = { };
"vpn/lgs/key" = { };
};
services.openvpn.servers.lgs = {
autoStart = false;
config = ''
dev tap
persist-tun
persist-key
data-ciphers AES-128-GCM:AES-256-CBC
data-ciphers-fallback AES-256-CBC
auth SHA1
tls-client
client
resolv-retry infinite
remote 194.9.190.11 1194 udp4
nobind
auth-user-pass
ca ${config.sops.secrets."vpn/lgs/crt".path}
tls-auth ${config.sops.secrets."vpn/lgs/key".path} 1
remote-cert-tls server
explicit-exit-notify
'';
};
};
}

View file

@ -11,7 +11,6 @@
sops.secrets = {
"iwd/WLAN-233151" = { };
"iwd/Fairphone4" = { };
"iwd/LGS" = { };
};
networking.wireless.iwd = {
@ -27,7 +26,6 @@
systemd.tmpfiles.rules = [
"C /var/lib/iwd/WLAN-233151.psk 0600 root root - ${config.sops.secrets."iwd/WLAN-233151".path}"
"C /var/lib/iwd/Fairphone4.psk 0600 root root - ${config.sops.secrets."iwd/Fairphone4".path}"
"C /var/lib/iwd/LGS.8021x 0600 root root - ${config.sops.secrets."iwd/LGS".path}"
];
environment.systemPackages = [ pkgs.iwgtk ];