1
1
Fork 1
mirror of https://github.com/oddlama/nix-config.git synced 2025-10-11 07:10:39 +02:00

refactor: split apps into own files

This commit is contained in:
oddlama 2023-04-10 01:13:40 +02:00
parent 9c3142aa71
commit 83a543b266
No known key found for this signature in database
GPG key ID: 14EFE510775FE39A
14 changed files with 193 additions and 81 deletions

1
hosts/ward/grafana.nix Normal file
View file

@ -0,0 +1 @@
{}

View file

@ -1,4 +1,7 @@
{nodeSecrets, ...}: {
{nodeSecrets, ...}: let
wgName = "wg-vms";
wgPort = 51820;
in {
networking.hostId = "49ce3b71";
systemd.network.networks = {
@ -17,4 +20,42 @@
dhcpV6Config.RouteMetric = 20;
};
};
#systemd.network.netdevs."20-${wgName}" = {
# netdevConfig = {
# Kind = "wireguard";
# Name = "${wgName}";
# Description = "Wireguard network ${wgName}";
# };
# wireguardConfig = {
# PrivateKeyFile = wireguardPrivateKey wgName nodeMeta.name;
# ListenPort = wgPort;
# };
# wireguardPeers = [
# {
# wireguardPeerConfig = {
# PublicKey = wireguardPublicKey wgName nodeMeta.name;;
# PresharedKey = wireguardPresharedKey wgName nodeMeta.name;;
# AllowedIPs = [ "10.66.66.10/32" ];
# PersistentKeepalive = 25;
# };
# }
# {
# wireguardPeerConfig = {
# AllowedIPs = [ "10.66.66.100/32" ];
# PersistentKeepalive = 25;
# };
# }
# ];
#};
#networks."20-${wgName}" = {
# matchConfig.Name = wgName;
# networkConfig = {
# Address = "10.66.66.1/24";
# IPForward = "ipv4";
# };
#};
#extra.wireguard.servers.home = {
#};
}

View file

@ -0,0 +1 @@
{}

View file

@ -0,0 +1 @@
{}

1
hosts/ward/samba.nix Normal file
View file

@ -0,0 +1 @@
{}