More opt
Some checks failed
Nix Build / build-nixos (push) Failing after 29s

This commit is contained in:
soraefir
2024-04-14 22:45:21 +02:00
parent ad1c8a0026
commit 0920a1381d
10 changed files with 132 additions and 130 deletions

View File

@ -1,9 +1,7 @@
{ lib, config, ... }:
let cfg = config.syscfg.net.wlp;
in {
config = lib.mkIf cfg.enable {
{ lib, config, ... }: {
config = lib.mkIf (config.syscfg.net.wlp.enable) {
networking.supplicant = {
"${cfg.nif}" = {
"${config.syscfg.net.wlp.nif}" = {
configFile.path = config.sops.secrets.wifi.path;
extraConf = ''
network={

View File

@ -1,19 +1,21 @@
{ config, ... }: {
networking.wireguard = {
enable = true;
interfaces = {
wg0 = {
ips = [ config.syscfg.net.wg.ip4 config.syscfg.net.wg.ip6 ];
privateKeyFile =
config.sops.secrets."${config.syscfg.hostname}_wg_priv".path;
listenPort = 1515;
mtu = 1340;
peers = [{
allowedIPs = [ "10.10.1.0/24" "fd10:10:10::0/64" ];
endpoint = "vpn.helcel.net:1515";
publicKey = "NFBJvYXZC+bd62jhrKnM7/pugidWhgR6+C5qIiUiq3Q=";
persistentKeepalive = 30;
}];
{ config, lib, ... }: {
config = lib.mkIf (config.syscfg.net.wg.enable) {
networking.wireguard = {
enable = true;
interfaces = {
wg0 = {
ips = [ config.syscfg.net.wg.ip4 config.syscfg.net.wg.ip6 ];
privateKeyFile =
config.sops.secrets."${config.syscfg.hostname}_wg_priv".path;
listenPort = 1515;
mtu = 1340;
peers = [{
allowedIPs = [ "10.10.1.0/24" "fd10:10:10::0/64" ];
endpoint = "vpn.helcel.net:1515";
publicKey = "NFBJvYXZC+bd62jhrKnM7/pugidWhgR6+C5qIiUiq3Q=";
persistentKeepalive = 30;
}];
};
};
};
};