Compare commits

...

3 commits

Author SHA1 Message Date
790b5ec4e7 Machines/everest: change eno1 ip 2025-03-10 14:18:51 +01:00
6be10e325a Server/adguard: get host ip dinamically 2025-03-10 14:18:29 +01:00
965a5eef13 Server/ssh: remove log 2025-03-09 11:55:52 +01:00
3 changed files with 8 additions and 6 deletions

View file

@ -22,14 +22,14 @@
wakeOnLan.enable = true; wakeOnLan.enable = true;
ipv4.addresses = [ ipv4.addresses = [
{ {
address = "10.0.0.2"; address = "192.168.1.160";
prefixLength = 8; prefixLength = 8;
} }
]; ];
}; };
# I use networkd, so I need to declare the interface for the default gateway # I use networkd, so I need to declare the interface for the default gateway
defaultGateway = { defaultGateway = {
address = "10.0.0.1"; address = "192.168.1.1";
interface = "eno1"; interface = "eno1";
}; };
nameservers = ["9.9.9.9"]; nameservers = ["9.9.9.9"];

View file

@ -1,4 +1,8 @@
{lib, ...}: let {
lib,
config,
...
}: let
domain = "adguard.everest.tailscale"; domain = "adguard.everest.tailscale";
port = 3001; port = 3001;
in { in {
@ -10,7 +14,7 @@ in {
settings = { settings = {
dns = { dns = {
bind_hosts = [ bind_hosts = [
"10.0.0.2" ((lib.lists.last config.networking.interfaces.eno1.ipv4.addresses).address)
"100.100.0.1" "100.100.0.1"
]; ];
bootstrap_dns = ["9.9.9.9"]; bootstrap_dns = ["9.9.9.9"];

View file

@ -16,8 +16,6 @@
if os.environ["PAM_TYPE"] != "open_session": if os.environ["PAM_TYPE"] != "open_session":
raise SystemExit raise SystemExit
print("User logging in")
secretPath = "${config.age.secrets.discord-webhook.path}" secretPath = "${config.age.secrets.discord-webhook.path}"
webhookUrl: str webhookUrl: str