Add beszel agent to busch
This commit is contained in:
parent
5c9999132b
commit
a7abed17d5
3 changed files with 30 additions and 12 deletions
|
|
@ -136,6 +136,7 @@
|
||||||
modules = [
|
modules = [
|
||||||
./hosts/busch
|
./hosts/busch
|
||||||
disko.nixosModules.disko
|
disko.nixosModules.disko
|
||||||
|
agenix.nixosModules.default
|
||||||
proxmox-nixos.nixosModules.proxmox-ve
|
proxmox-nixos.nixosModules.proxmox-ve
|
||||||
|
|
||||||
({...}: {
|
({...}: {
|
||||||
|
|
|
||||||
|
|
@ -4,6 +4,7 @@
|
||||||
imports =
|
imports =
|
||||||
[
|
[
|
||||||
./disko.nix
|
./disko.nix
|
||||||
|
./secrets.nix
|
||||||
|
|
||||||
../../modules/nix.nix
|
../../modules/nix.nix
|
||||||
../../modules/auto-upgrade.nix
|
../../modules/auto-upgrade.nix
|
||||||
|
|
@ -29,21 +30,31 @@
|
||||||
|
|
||||||
networking.hostName = "busch"; # Define your hostname.
|
networking.hostName = "busch"; # Define your hostname.
|
||||||
|
|
||||||
services.netbird = {
|
services = {
|
||||||
package = pkgs-unstable.netbird;
|
netbird = {
|
||||||
useRoutingFeatures = "both";
|
package = pkgs-unstable.netbird;
|
||||||
clients.wt0 = {
|
useRoutingFeatures = "both";
|
||||||
hardened = false;
|
clients.wt0 = {
|
||||||
login = {
|
hardened = false;
|
||||||
enable = true;
|
login = {
|
||||||
setupKeyFile = (pkgs.writeText "setupKey" ''
|
enable = true;
|
||||||
A99F5508-D543-40B7-A31A-A8931B1AE246
|
setupKeyFile = (pkgs.writeText "setupKey" ''
|
||||||
'').outPath;
|
A99F5508-D543-40B7-A31A-A8931B1AE246
|
||||||
|
'').outPath;
|
||||||
|
};
|
||||||
|
port = 51820;
|
||||||
|
environment = {
|
||||||
|
NB_MANAGEMENT_URL = "https://netbird.jfreudenberger.de";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
port = 51820;
|
};
|
||||||
|
beszel.agent = {
|
||||||
|
enable = true;
|
||||||
environment = {
|
environment = {
|
||||||
NB_MANAGEMENT_URL = "https://netbird.jfreudenberger.de";
|
HUB_URL = "https://beszel.jfreudenberger.de";
|
||||||
|
DISABLE_SSH = "true";
|
||||||
};
|
};
|
||||||
|
environmentFile = config.age.secrets.beszel.path;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
systemd.services.${config.services.netbird.clients.wt0.service.name}.path = [ pkgs.shadow ];
|
systemd.services.${config.services.netbird.clients.wt0.service.name}.path = [ pkgs.shadow ];
|
||||||
|
|
|
||||||
6
hosts/busch/secrets.nix
Normal file
6
hosts/busch/secrets.nix
Normal file
|
|
@ -0,0 +1,6 @@
|
||||||
|
{ inputs, ... }:
|
||||||
|
{
|
||||||
|
age.secrets = {
|
||||||
|
beszel.file = "${inputs.secrets}/secrets/busch/beszel";
|
||||||
|
};
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue