2d874d39693d0ae16d90a1cd25471bf3cefb719c
Fix 1 - UnPoller 404 on UDM Pro: Remove :8443 from UP_UNIFI_DEFAULT_URL. UniFi OS devices (UDM Pro, UDM, UXG, CloudKey) use a different API path and do NOT use port 8443. URL should be https://10.42.1.1 (no port); unpoller handles the /proxy/network path internally for UniFi OS devices. Fix 2 - Grafana dashboards showing invalid datasource: Add uid = "prometheus" to the provisioned Prometheus datasource. Without an explicit UID, Grafana auto-generates one on first run. All dashboard JSON references datasource uid "prometheus" which only works if the provisioning explicitly sets that UID.
This is a unified repo to contain my personal configurations for NixOS machines.
How To Use This
Go through the normal process to setup a NixOS system during installation.
- Boot from an appropriate medium
- Parition the drives
- Mount them
- Before you generate out the configuration, clone this repoistory to your /etc/nixos folder
- Run the configuration generator. It should only genreate the hardware-configuration.nix file, which this repo gitignores
- Create a folder and file with the machine name in
hosts/<machine>/default.nix - Add
hosts/default.nixan appropriate entry for the machine you are building - Create a file
home/hosts/<machine>/default.nixwith the new machine name as well
Adding new hosts
To add a new host, create a folder in the directory hosts/ that matches the name of
the target system. Each host must contain, minimally, a default.nix file that serves
as the basis of configuring that host.
Test build a VM for your system
nom build ".#nixosConfigurations.<host>.config.system.build.vmexport QEMU_NET_OPTS="hostfwd=tcp::2221-:22"to export the SSH port./result/bin/run-<host>-vm
Languages
Nix
87.9%
Go
3.9%
Vim Script
2.7%
Xonsh
1.8%
Lua
1.5%
Other
2.2%