1

Generate file with available vpn tunnels for rofi

This commit is contained in:
2023-05-25 00:06:09 +02:00
parent 6779888b15
commit f5c25b7a0b
5 changed files with 12 additions and 6 deletions

View File

@ -1,3 +1,4 @@
# TODO: Generate file with names for rofi
{
config,
nixosConfig,

View File

@ -1,3 +1,4 @@
# TODO: Generate file with VPN names for rofi
# TODO: Need to set permissions through polkit module
# TODO: Setup Wireless (IWD/Networkd?)
{
@ -27,6 +28,11 @@ in {
# Wireguard VPNs
systemd.services = cfg.wireguard-tunnels;
environment.etc."rofi-vpns".text = let
names-list = attrNames cfg.wireguard-tunnels;
names = concatStringsSep "\n" names-list;
in
names;
# General Networking Settings
networking = {