This commit is contained in:
Annika Merris 2024-07-28 21:30:55 -04:00
parent 4b8593b7f2
commit 74877a1c6c
2 changed files with 35 additions and 0 deletions

View file

@ -9,12 +9,36 @@ inputs.nixpkgs.lib.nixosSystem {
globals
lix-module.nixosModules.default
home-manager.nixosModules.home-manager
./netbird.nix
../../modules/common
../../modules/nixos
{
home-manager.useGlobalPkgs = true;
physical = false;
server = true;
networking.hostName = "nixbird";
networking.useDHCP = nixpkgs.lib.mkDefault true;
networking.networkmanager.unmanaged = [ "wt0" ];
sops = {
defaultSopsFile = ../../secrets/secrets.yaml;
defaultSopsFormat = "yaml";
age.keyFile = "/home/annika/.config/sops/age/keys.txt";
};
time.timeZone = "America/New_York";
nix.settings.experimental-features = [ "nix-command" "flakes" ];
nixpkgs.config.allowUnfree = true;
system.stateVersion = 23.11;
home-manager.backupFileExtension = "backup";
autio.enable = false;
gui.enable = false;
services.openssh.enable = true;
}
];
}

11
hosts/nixbird/netbird.nix Normal file
View file

@ -0,0 +1,11 @@
{ config, lib, pkgs, ... }:
{
sops.secrets."netbird/setup_keys/end_user" = { };
netbird = {
enable = true;
opts = {
management_url = "https://netbird.moosenet.work:443";
admin_url = "https://netbird.moosenet.work";
};
};
}