mirror of
https://github.com/TheWanderingCrow/CrOS.git
synced 2026-02-22 04:02:31 -05:00
update some secrets
This commit is contained in:
parent
891be2b165
commit
87df654fce
4 changed files with 20 additions and 59 deletions
|
|
@ -3,6 +3,7 @@ let
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
lib,
|
lib,
|
||||||
|
inputs,
|
||||||
config,
|
config,
|
||||||
...
|
...
|
||||||
}: {
|
}: {
|
||||||
|
|
@ -40,7 +41,7 @@ in
|
||||||
extraConfig = ''
|
extraConfig = ''
|
||||||
allow 192.168.0.0/16;
|
allow 192.168.0.0/16;
|
||||||
allow 10.8.0.0/24;
|
allow 10.8.0.0/24;
|
||||||
allow 172.220.132.255;
|
allow ${inputs.nix-secrets.network.primary.publicIP}
|
||||||
deny all;
|
deny all;
|
||||||
'';
|
'';
|
||||||
forceSSL = true;
|
forceSSL = true;
|
||||||
|
|
@ -106,4 +107,3 @@ in
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,4 @@
|
||||||
{
|
{inputs, ...}: {
|
||||||
lib,
|
|
||||||
config,
|
|
||||||
...
|
|
||||||
}: {
|
|
||||||
services = {
|
services = {
|
||||||
nginx = {
|
nginx = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
@ -15,7 +11,7 @@
|
||||||
extraConfig = ''
|
extraConfig = ''
|
||||||
allow 192.168.0.0/16;
|
allow 192.168.0.0/16;
|
||||||
allow 10.8.0.0/24;
|
allow 10.8.0.0/24;
|
||||||
allow 172.220.132.255;
|
allow ${inputs.nix-secrets.network.primary.publicIP}
|
||||||
deny all;
|
deny all;
|
||||||
'';
|
'';
|
||||||
proxyPass = "http://localhost:7745";
|
proxyPass = "http://localhost:7745";
|
||||||
|
|
|
||||||
|
|
@ -2,25 +2,25 @@
|
||||||
lib,
|
lib,
|
||||||
inputs,
|
inputs,
|
||||||
config,
|
config,
|
||||||
|
pkgs,
|
||||||
...
|
...
|
||||||
}: let
|
}: let
|
||||||
s = inputs.nix-secrets;
|
s = inputs.nix-secrets;
|
||||||
in {
|
in {
|
||||||
# Homepage.dev secrets
|
# Homepage.dev secrets
|
||||||
sops = {
|
sops = {
|
||||||
secrets = {
|
#secrets = {
|
||||||
"homepage/openmeteo/lat" = {};
|
#"lubelogger/user" = {};
|
||||||
"homepage/openmeteo/long" = {};
|
#"lubelogger/pass" = {};
|
||||||
"lubelogger/user" = {};
|
#};
|
||||||
"lubelogger/pass" = {};
|
|
||||||
};
|
|
||||||
templates."homepage-environment".content = ''
|
templates."homepage-environment".content = ''
|
||||||
HOMEPAGE_VAR_LAT = ${config.sops.placeholder."homepage/openmeteo/lat"}
|
HOMEPAGE_VAR_LAT = ${s.crow.location.lat}
|
||||||
HOMEPAGE_VAR_LONG = ${config.sops.placeholder."homepage/openmeteo/long"}
|
HOMEPAGE_VAR_LONG = ${s.crow.location.long}
|
||||||
HOMEPAGE_VAR_LUBELOGGERUSER = ${config.sops.placeholder."lubelogger/user"}
|
|
||||||
HOMEPAGE_VAR_LUBELOGGERPASS = ${config.sops.placeholder."lubelogger/pass"}
|
|
||||||
HOMEPAGE_ALLOWED_HOSTS = home.wanderingcrow.net
|
HOMEPAGE_ALLOWED_HOSTS = home.wanderingcrow.net
|
||||||
'';
|
'';
|
||||||
|
#Need to put these back in later
|
||||||
|
#HOMEPAGE_VAR_LUBELOGGERUSER = ${config.sops.placeholder."lubelogger/user"}
|
||||||
|
#HOMEPAGE_VAR_LUBELOGGERPASS = ${config.sops.placeholder."lubelogger/pass"}
|
||||||
};
|
};
|
||||||
|
|
||||||
services.nginx = {
|
services.nginx = {
|
||||||
|
|
@ -33,8 +33,7 @@ in {
|
||||||
locations."/" = {
|
locations."/" = {
|
||||||
extraConfig = ''
|
extraConfig = ''
|
||||||
allow 192.168.0.0/16;
|
allow 192.168.0.0/16;
|
||||||
allow 10.8.0.0/24;
|
allow ${s.network.primary.publicIP}
|
||||||
allow 172.220.134.108;
|
|
||||||
deny all;
|
deny all;
|
||||||
'';
|
'';
|
||||||
proxyPass = "http://localhost:8089";
|
proxyPass = "http://localhost:8089";
|
||||||
|
|
@ -63,8 +62,8 @@ in {
|
||||||
widget = {
|
widget = {
|
||||||
type = "lubelogger";
|
type = "lubelogger";
|
||||||
url = "https://garage.wanderingcrow.net";
|
url = "https://garage.wanderingcrow.net";
|
||||||
username = "{{HOMEPAGE_VAR_LUBELOGGERUSER}}";
|
# username = "{{HOMEPAGE_VAR_LUBELOGGERUSER}}";
|
||||||
password = "{{HOMEPAGE_VAR_LUBELOGGERPASS}}";
|
# password = "{{HOMEPAGE_VAR_LUBELOGGERPASS}}";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
@ -185,42 +184,7 @@ in {
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
{
|
s.work.homepage
|
||||||
Work = [
|
|
||||||
{
|
|
||||||
Jira = [
|
|
||||||
{
|
|
||||||
icon = "jira.svg";
|
|
||||||
href = "https://home.atlassian.com/";
|
|
||||||
}
|
|
||||||
];
|
|
||||||
}
|
|
||||||
{
|
|
||||||
AWS = [
|
|
||||||
{
|
|
||||||
icon = "aws.svg";
|
|
||||||
href = "https://console.aws.amazon.com/";
|
|
||||||
}
|
|
||||||
];
|
|
||||||
}
|
|
||||||
{
|
|
||||||
Email = [
|
|
||||||
{
|
|
||||||
icon = "gmail.svg";
|
|
||||||
href = "https://mail.google.com/mail/u/1/#inbox";
|
|
||||||
}
|
|
||||||
];
|
|
||||||
}
|
|
||||||
{
|
|
||||||
Groups = [
|
|
||||||
{
|
|
||||||
icon = "https://www.gstatic.com/images/branding/product/1x/groups_32dp.png";
|
|
||||||
href = "https://groups.google.com/u/1/";
|
|
||||||
}
|
|
||||||
];
|
|
||||||
}
|
|
||||||
];
|
|
||||||
}
|
|
||||||
{
|
{
|
||||||
Nix = [
|
Nix = [
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -4,6 +4,7 @@ in
|
||||||
{
|
{
|
||||||
lib,
|
lib,
|
||||||
config,
|
config,
|
||||||
|
inputs,
|
||||||
...
|
...
|
||||||
}: {
|
}: {
|
||||||
systemd.tmpfiles.rules = [
|
systemd.tmpfiles.rules = [
|
||||||
|
|
@ -40,7 +41,7 @@ in
|
||||||
extraConfig = ''
|
extraConfig = ''
|
||||||
allow 192.168.0.0/16;
|
allow 192.168.0.0/16;
|
||||||
allow 10.8.0.0/24;
|
allow 10.8.0.0/24;
|
||||||
allow 172.220.132.255;
|
allow ${inputs.nix-secrets.network.primary.publicIP}
|
||||||
deny all;
|
deny all;
|
||||||
'';
|
'';
|
||||||
proxyPass = "http://10.88.0.9:8080";
|
proxyPass = "http://10.88.0.9:8080";
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue