Implement raspberry pi check using nixos-facter
This commit is contained in:
parent
4d7e81fd63
commit
2a63bee83b
5 changed files with 46 additions and 32 deletions
|
@ -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;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
Reference in a new issue