1

Update comments

This commit is contained in:
2023-05-24 20:32:04 +02:00
parent feee85b79d
commit 5c58b7b455
4 changed files with 48 additions and 48 deletions

View File

@ -1,3 +1,4 @@
# TODO: Easier mkLink/mkUnlink (include more hm.dag stuff into the function)
{ {
inputs, inputs,
pkgs, pkgs,
@ -34,14 +35,6 @@
fi fi
''; '';
# TODO
mkMultiOptStr = {}: {
};
# TODO
mkMultiOptPkg = {}: {
};
# Returns true if base contains element # Returns true if base contains element
contains = base: element: contains = base: element:
lib.any (x: x == element) base; lib.any (x: x == element) base;

View File

@ -1,3 +1,4 @@
# TODO: OpenVPN
{ {
inputs, inputs,
pkgs, pkgs,
@ -32,7 +33,6 @@
}; };
}; };
# VPN stuff
mkNetworkNamespace = name: '' mkNetworkNamespace = name: ''
${pkgs.iproute}/bin/ip netns add ${name} # Create the Namespace ${pkgs.iproute}/bin/ip netns add ${name} # Create the Namespace
${pkgs.iproute}/bin/ip -n ${name} link set lo up # Enable the Loopback device ${pkgs.iproute}/bin/ip -n ${name} link set lo up # Enable the Loopback device
@ -42,7 +42,8 @@
${pkgs.iproute}/bin/ip netns del ${name} # Delete the Namespace ${pkgs.iproute}/bin/ip netns del ${name} # Delete the Namespace
''; '';
# TODO: IPv6 Configuration # VPN stuff
mkWireguardService = let
# NOTE: The interface and netns have the same name, so it's a bit confusing # NOTE: The interface and netns have the same name, so it's a bit confusing
mkWireguardTunnel = name: privatekey: publickey: endpoint: '' mkWireguardTunnel = name: privatekey: publickey: endpoint: ''
${pkgs.iproute}/bin/ip link add ${name} type wireguard ${pkgs.iproute}/bin/ip link add ${name} type wireguard
@ -60,8 +61,8 @@
killWireguardTunnel = name: '' killWireguardTunnel = name: ''
${pkgs.iproute}/bin/ip -n ${name} link del ${name} ${pkgs.iproute}/bin/ip -n ${name} link del ${name}
''; '';
in
mkWireguardService = name: privatekey: publickey: endpoint: { name: privatekey: publickey: endpoint: {
description = "Wireguard ProtonVPN Server ${name}"; description = "Wireguard ProtonVPN Server ${name}";
serviceConfig = { serviceConfig = {
Type = "oneshot"; Type = "oneshot";
@ -79,6 +80,9 @@
}; };
}; };
# mkOpenVPNService = let
# mkOpenVPNTunnel = ""; # mkOpenVPNTunnel = "";
# killOpenVPNTunnel = ""; # killOpenVPNTunnel = "";
# in
# name: {};
} }

View File

@ -1,3 +1,7 @@
# TODO: Rofi Integration
# - Hotkey through hyprland module
# - Menu through rofi module
# - Permissions through polkit module
{ {
lib, lib,
mylib, mylib,
@ -29,8 +33,6 @@ with mylib.modules; {
enable = mkEnableOpt "Enable SabNzbd Container"; enable = mkEnableOpt "Enable SabNzbd Container";
}; };
# TODO: I need to set the keys through the hyprland module
# and generate the menu through the rofi module
rofiIntegration = { rofiIntegration = {
enable = mkEnableOpt "Enable Rofi Menu for Container Servicing"; enable = mkEnableOpt "Enable Rofi Menu for Container Servicing";
hotkey = mkOption { hotkey = mkOption {

View File

@ -1,3 +1,5 @@
# TODO: Need to set permissions through polkit module
# TODO: Setup Wireless (IWD/Networkd?)
{ {
inputs, inputs,
config, config,
@ -39,7 +41,6 @@ in {
useNetworkd = false; # Only use this if the configuration can't be written in systemd.network completely. It translates some of the networking... options to systemd useNetworkd = false; # Only use this if the configuration can't be written in systemd.network completely. It translates some of the networking... options to systemd
# resolvconf.enable = true; # resolvconf.enable = true;
# TODO: Either IWD or WiFi through systemd-networkd
wireless = { wireless = {
enable = false; # Enables wireless support via wpa_supplicant. enable = false; # Enables wireless support via wpa_supplicant.
iwd.enable = false; # Use iwd instead of NetworkManager iwd.enable = false; # Use iwd instead of NetworkManager