Refactor machine logic

This commit is contained in:
Pim Kunis 2024-11-04 23:35:04 +01:00
parent fd423b8237
commit 1e80b36037
11 changed files with 53 additions and 114 deletions

View file

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