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:
parent
9c3142aa71
commit
83a543b266
14 changed files with 193 additions and 81 deletions
|
@ -87,9 +87,10 @@ in {
|
|||
stateVersion = "23.05";
|
||||
};
|
||||
|
||||
systemd = {
|
||||
enableUnifiedCgroupHierarchy = true;
|
||||
network.wait-online.anyInterface = true;
|
||||
systemd.enableUnifiedCgroupHierarchy = true;
|
||||
systemd.network = {
|
||||
enable = true;
|
||||
wait-online.anyInterface = true;
|
||||
};
|
||||
|
||||
users.mutableUsers = false;
|
||||
|
|
1
hosts/ward/grafana.nix
Normal file
1
hosts/ward/grafana.nix
Normal file
|
@ -0,0 +1 @@
|
|||
{}
|
|
@ -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 = {
|
||||
#};
|
||||
}
|
||||
|
|
1
hosts/ward/node_exporter.nix
Normal file
1
hosts/ward/node_exporter.nix
Normal file
|
@ -0,0 +1 @@
|
|||
{}
|
1
hosts/ward/prometheus.nix
Normal file
1
hosts/ward/prometheus.nix
Normal file
|
@ -0,0 +1 @@
|
|||
{}
|
1
hosts/ward/samba.nix
Normal file
1
hosts/ward/samba.nix
Normal file
|
@ -0,0 +1 @@
|
|||
{}
|
Loading…
Add table
Add a link
Reference in a new issue