mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-02-07 12:19:07 +00:00
chore: reformat the codebase
This commit is contained in:
parent
ae787f8fcc
commit
1c609f5e95
@ -38,6 +38,11 @@ rec {
|
|||||||
address = "65.109.224.213";
|
address = "65.109.224.213";
|
||||||
gateway = "172.31.1.1";
|
gateway = "172.31.1.1";
|
||||||
};
|
};
|
||||||
|
IPv6 = {
|
||||||
|
address = "2a01:4f9:c012:607a::1";
|
||||||
|
gateway = ipv6Gateway;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
internal = {
|
internal = {
|
||||||
IPv4 = {
|
IPv4 = {
|
||||||
|
@ -47,7 +47,8 @@ let
|
|||||||
domainZoneFile' = "/etc/coredns/zones/${domain}.zone";
|
domainZoneFile' = "/etc/coredns/zones/${domain}.zone";
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
sops.secrets = let
|
sops.secrets =
|
||||||
|
let
|
||||||
getKey = key: {
|
getKey = key: {
|
||||||
inherit key;
|
inherit key;
|
||||||
sopsFile = ../../secrets/secrets.yaml;
|
sopsFile = ../../secrets/secrets.yaml;
|
||||||
|
@ -78,7 +78,8 @@ in
|
|||||||
|
|
||||||
# This is based from the reverse proxy guide from the official
|
# This is based from the reverse proxy guide from the official
|
||||||
# documentation at https://www.keycloak.org/server/reverseproxy.
|
# documentation at https://www.keycloak.org/server/reverseproxy.
|
||||||
locations = let
|
locations =
|
||||||
|
let
|
||||||
keycloakPath = path: "http://${host}:${toString config.services.keycloak.settings.http-port}";
|
keycloakPath = path: "http://${host}:${toString config.services.keycloak.settings.http-port}";
|
||||||
in
|
in
|
||||||
lib.listToAttrs
|
lib.listToAttrs
|
||||||
|
@ -71,11 +71,13 @@ in
|
|||||||
{
|
{
|
||||||
routeConfig = {
|
routeConfig = {
|
||||||
Gateway = wireguardPeers.server.IPv4;
|
Gateway = wireguardPeers.server.IPv4;
|
||||||
Destination = let
|
Destination =
|
||||||
|
let
|
||||||
ip = lib.strings.splitString "." wireguardPeers.server.IPv4;
|
ip = lib.strings.splitString "." wireguardPeers.server.IPv4;
|
||||||
properRange = lib.lists.take 3 ip ++ [ "0" ];
|
properRange = lib.lists.take 3 ip ++ [ "0" ];
|
||||||
ip' = lib.concatStringsSep "." properRange;
|
ip' = lib.concatStringsSep "." properRange;
|
||||||
in "${ip'}/16";
|
in
|
||||||
|
"${ip'}/16";
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
Loading…
Reference in New Issue
Block a user