This commit is contained in:
mjallen18
2026-03-23 16:37:34 -05:00
parent 23f29b6ca1
commit 0b9a301a92
6 changed files with 586 additions and 355 deletions

View File

@@ -2,7 +2,12 @@
# your system. Help is available in the configuration.nix(5) man page, on
# https://search.nixos.org/options and in the NixOS manual (`nixos-help`).
{ pkgs, namespace, ... }:
{
lib,
pkgs,
namespace,
...
}:
{
imports = [
./boot.nix
@@ -93,6 +98,19 @@
iptables -I INPUT -p udp -m udp --match multiport --dports 1990,2021 -j ACCEPT
'';
};
services = {
nebula = {
enable = true;
port = 4242;
lighthouses = [ "10.1.1.1" ];
staticHostMap = {
"10.1.1.1" = [ "mjallen.dev:4242" ];
};
secretsPrefix = "macbook-pro-nixos/nebula";
secretsFile = lib.snowfall.fs.get-file "secrets/mac-secrets.yaml";
hostSecretName = "macbook-pro-nixos";
};
};
};
nixpkgs.config.allowUnsupportedSystem = true;