fix: netbird works now
This commit is contained in:
parent
46613eee4d
commit
6fa99bd855
|
@ -9,6 +9,12 @@
|
||||||
33080 # relay
|
33080 # relay
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
networking.nftables.chains.forward.from-netbird = {
|
||||||
|
after = [ "conntrack" ];
|
||||||
|
rules = [
|
||||||
|
"iifname nb-main oifname mv-lan accept"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
age.secrets.coturnPassword = {
|
age.secrets.coturnPassword = {
|
||||||
generator.script = "alnum";
|
generator.script = "alnum";
|
||||||
|
@ -34,7 +40,10 @@
|
||||||
group = "netbird";
|
group = "netbird";
|
||||||
};
|
};
|
||||||
|
|
||||||
networking.firewall.allowedUDPPorts = [ 3478 ]; # STUN/TURN server
|
networking.firewall.allowedUDPPorts = [
|
||||||
|
3478
|
||||||
|
5349
|
||||||
|
]; # STUN/TURN server
|
||||||
services.netbird = {
|
services.netbird = {
|
||||||
clients.main = {
|
clients.main = {
|
||||||
port = 51820;
|
port = 51820;
|
||||||
|
@ -44,6 +53,7 @@
|
||||||
NB_HOSTNAME = "home";
|
NB_HOSTNAME = "home";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
server = {
|
server = {
|
||||||
enable = true;
|
enable = true;
|
||||||
domain = "netbird.${config.secrets.secrets.global.domains.web}";
|
domain = "netbird.${config.secrets.secrets.global.domains.web}";
|
||||||
|
|
|
@ -1371,11 +1371,11 @@
|
||||||
"pre-commit-hooks": "pre-commit-hooks_3"
|
"pre-commit-hooks": "pre-commit-hooks_3"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1732215218,
|
"lastModified": 1732216602,
|
||||||
"narHash": "sha256-/iaKjsFlCbbyDQSJeeCkcgq1+fiVTnJZNyyOO9aaMRM=",
|
"narHash": "sha256-svG11P+vsHYKoDj1nWSGHoep4f+rzbRM/fdWPSVE/Uk=",
|
||||||
"owner": "oddlama",
|
"owner": "oddlama",
|
||||||
"repo": "nixos-extra-modules",
|
"repo": "nixos-extra-modules",
|
||||||
"rev": "90c0b018de0465bffe35fee0f86dadfab35b878f",
|
"rev": "6841242d5f7c32fc8a214014f1c97ae935ef8b8e",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
|
|
@ -61,7 +61,6 @@
|
||||||
];
|
];
|
||||||
zramSwap.enable = true;
|
zramSwap.enable = true;
|
||||||
|
|
||||||
services.netbird.enable = true;
|
|
||||||
# Do not cleanup nix store to prevent having to rebuild packages onca a month
|
# Do not cleanup nix store to prevent having to rebuild packages onca a month
|
||||||
nix.gc.automatic = lib.mkForce false;
|
nix.gc.automatic = lib.mkForce false;
|
||||||
nixpkgs.hostPlatform = "x86_64-linux";
|
nixpkgs.hostPlatform = "x86_64-linux";
|
||||||
|
|
Binary file not shown.
|
@ -3,6 +3,10 @@
|
||||||
environment.persistence."/state".directories = [
|
environment.persistence."/state".directories = [
|
||||||
"/var/lib/iwd"
|
"/var/lib/iwd"
|
||||||
"/etc/mullvad-vpn"
|
"/etc/mullvad-vpn"
|
||||||
|
{
|
||||||
|
directory = "/var/lib/netbird-main";
|
||||||
|
user = "netbird-main";
|
||||||
|
}
|
||||||
];
|
];
|
||||||
age.secrets.eduroam = {
|
age.secrets.eduroam = {
|
||||||
rekeyFile = ./secrets/iwd/eduroam.8021x.age;
|
rekeyFile = ./secrets/iwd/eduroam.8021x.age;
|
||||||
|
@ -75,4 +79,15 @@
|
||||||
enable = true;
|
enable = true;
|
||||||
package = pkgs.mullvad-vpn;
|
package = pkgs.mullvad-vpn;
|
||||||
};
|
};
|
||||||
|
services.netbird = {
|
||||||
|
clients.main = {
|
||||||
|
port = 51820;
|
||||||
|
environment = {
|
||||||
|
NB_MANAGEMENT_URL = "https://netbird.${config.secrets.secrets.global.domains.web}";
|
||||||
|
NB_ADMIN_URL = "https://netbird.${config.secrets.secrets.global.domains.web}";
|
||||||
|
NB_HOSTNAME = "patricknix";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
users.users."patrick".extraGroups = [ "netbird-main" ];
|
||||||
}
|
}
|
||||||
|
|
|
@ -56,6 +56,7 @@
|
||||||
".cache/spotify"
|
".cache/spotify"
|
||||||
".local/share/cargo"
|
".local/share/cargo"
|
||||||
".local/share/wallpapers"
|
".local/share/wallpapers"
|
||||||
|
".factorio"
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
"/panzer/state".directories = lib.lists.optionals (config.disko.devices.zpool ? "panzer") [
|
"/panzer/state".directories = lib.lists.optionals (config.disko.devices.zpool ? "panzer") [
|
||||||
|
|
|
@ -5,11 +5,15 @@
|
||||||
{
|
{
|
||||||
hm.home = {
|
hm.home = {
|
||||||
packages = with pkgs; [
|
packages = with pkgs; [
|
||||||
|
bashInteractive
|
||||||
|
beatsabermodmanager
|
||||||
chatterino2
|
chatterino2
|
||||||
chromium
|
chromium
|
||||||
cmatrix
|
cmatrix
|
||||||
cowsay
|
cowsay
|
||||||
discord
|
discord
|
||||||
|
disneyplus
|
||||||
|
element-desktop
|
||||||
feh
|
feh
|
||||||
figlet
|
figlet
|
||||||
galaxy-buds-client
|
galaxy-buds-client
|
||||||
|
@ -19,7 +23,6 @@
|
||||||
hyperfine
|
hyperfine
|
||||||
mpv
|
mpv
|
||||||
netflix
|
netflix
|
||||||
disneyplus
|
|
||||||
nextcloud-client
|
nextcloud-client
|
||||||
nix-output-monitor
|
nix-output-monitor
|
||||||
nixpkgs-review
|
nixpkgs-review
|
||||||
|
@ -33,14 +36,12 @@
|
||||||
telegram-desktop
|
telegram-desktop
|
||||||
timer
|
timer
|
||||||
via
|
via
|
||||||
|
wcurl
|
||||||
webcord
|
webcord
|
||||||
xournalpp
|
xournalpp
|
||||||
yt-dlp
|
yt-dlp
|
||||||
zathura
|
zathura
|
||||||
zotero
|
zotero
|
||||||
bashInteractive
|
|
||||||
element-desktop-wayland
|
|
||||||
beatsabermodmanager
|
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
hm.programs.bat.enable = true;
|
hm.programs.bat.enable = true;
|
||||||
|
|
Loading…
Reference in a new issue