mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-01-21 16:21:34 +01:00
Remove lgs vpn and wlan
This commit is contained in:
parent
3c8edc5ff2
commit
5fac577437
7 changed files with 4 additions and 52 deletions
|
|
@ -3,7 +3,6 @@
|
|||
./flatpak.nix
|
||||
./vm.nix
|
||||
./wlan.nix
|
||||
./vpn.nix
|
||||
./comma.nix
|
||||
./sops.nix
|
||||
./bluetooth.nix
|
||||
|
|
|
|||
|
|
@ -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
|
||||
'';
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
@ -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 ];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue