1
0

Compare commits

...

6 Commits

Author SHA1 Message Date
Flake Update Bot
cbed65a601 Update from updated-inputs-2024-08-24-01-03 2024-08-24 03:03:05 +02:00
Flake Update Bot
1dce42c252 Update nixpkgs 2024-08-24-01-03 2024-08-24 03:03:03 +02:00
0a97c381ff
hosts/monitoring-3: Fix grafana listening address 2024-08-23 17:50:52 +02:00
ae5c16cb28
hosts/carbon: Add net-mgmt 2024-08-20 15:38:43 +02:00
0c840c1fdf
hosts/krypton: Allow android usb debugging 2024-08-20 12:29:31 +02:00
7d922716af
hosts/carbon: Add fallback reboot 2024-08-16 20:09:50 +02:00
5 changed files with 81 additions and 1 deletions

View File

@ -12,6 +12,7 @@
./net-heimnetz.nix ./net-heimnetz.nix
./net-iot.nix ./net-iot.nix
./net-lte.nix ./net-lte.nix
./net-mgmt.nix
./net-voip.nix ./net-voip.nix
./ntp.nix ./ntp.nix
./ppp.nix ./ppp.nix
@ -64,6 +65,13 @@
]; ];
}; };
systemd.services."system-reboot" = {
script = ''
${pkgs.systemd}/bin/reboot
'';
startAt = "*-*-* 1/3:13:14";
};
clerie.firewall.enable = true; clerie.firewall.enable = true;
clerie.monitoring = { clerie.monitoring = {

62
hosts/carbon/net-mgmt.nix Normal file
View File

@ -0,0 +1,62 @@
{ ... }:
{
networking.vlans."enp1s0.203" = {
id = 203;
interface = "enp1s0";
};
networking.bridges."net-mgmt".interfaces = [
"enp1s0.203"
];
networking.interfaces."net-mgmt".ipv6.addresses = [
{ address = "fe80::1"; prefixLength = 64; }
{ address = "fd00:152:152:203::1"; prefixLength = 64; }
];
networking.interfaces."net-mgmt".ipv4.addresses = [
{ address = "10.152.203.1"; prefixLength = 24; }
];
services.radvd.config = ''
interface net-mgmt {
AdvSendAdvert on;
prefix ::/64 {
AdvValidLifetime 60;
AdvPreferredLifetime 30;
};
};
'';
services.kea.dhcp4 = {
settings = {
interfaces-config = {
interfaces = [ "net-mgmt" ];
};
subnet4 = [
{
id = 203;
subnet = "10.152.203.0/24";
pools = [
{
pool = "10.152.203.100 - 10.152.203.240";
}
];
option-data = [
{
name = "routers";
data = "10.152.203.1";
}
];
}
];
};
};
clerie.firewall.extraForwardFilterCommands = ''
# Allow access from Heimnetz to MGMT network
ip46tables -A forward-filter -i net-heimnetz -o net-mgmt -j ACCEPT
ip46tables -A forward-filter -i net-mgmt -j DROP
ip46tables -A forward-filter -o net-mgmt -j DROP
'';
}

View File

@ -0,0 +1,9 @@
{ pkgs, ... }:
{
services.udev.packages = [
pkgs.android-udev-rules
];
}

View File

@ -7,6 +7,7 @@
../../configuration/desktop ../../configuration/desktop
./android.nix
./backup.nix ./backup.nix
#./initrd.nix #./initrd.nix
./network.nix ./network.nix

View File

@ -7,7 +7,7 @@
domain = "grafana.monitoring.clerie.de"; domain = "grafana.monitoring.clerie.de";
root_url = "https://grafana.monitoring.clerie.de"; root_url = "https://grafana.monitoring.clerie.de";
http_port = 3001; http_port = 3001;
http_addr = "[::1]"; http_addr = "::1";
}; };
"auth.anonymous" = { "auth.anonymous" = {
enabled = true; enabled = true;