Implement raspberry pi check using nixos-facter

This commit is contained in:
Pim Kunis 2024-11-04 22:27:24 +01:00
parent 4d7e81fd63
commit 2a63bee83b
5 changed files with 46 additions and 32 deletions

View file

@ -1,16 +1,21 @@
{
machines.warwick = {
arch = "aarch64-linux";
isRaspberryPi = true;
facterReportPath = ./facter.json;
nixosModule.lab = {
storage.profile = "pi";
monitoring.server.enable = true;
nixosModule = {inputs, ...}: {
imports = [inputs.nixos-hardware.nixosModules.raspberry-pi-4];
tailscale = {
advertiseExitNode = true;
enable = true;
config = {
lab = {
storage.profile = "pi";
monitoring.server.enable = true;
tailscale = {
advertiseExitNode = true;
enable = true;
};
};
};
};
};