diff --git a/machines/squid/README.md b/machines/squid/README.md new file mode 100644 index 00000000..edd3b5bd --- /dev/null +++ b/machines/squid/README.md @@ -0,0 +1,3 @@ +# `squid` + +Raspberry Pi that does my 3d printer diff --git a/machines/squid/configuration.nix b/machines/squid/configuration.nix new file mode 100644 index 00000000..5d5a8456 --- /dev/null +++ b/machines/squid/configuration.nix @@ -0,0 +1,27 @@ +inputs: +{ config, pkgs, lib, modulesPath, ... }: +with lib; { + imports = [ + "${modulesPath}/installer/sd-card/sd-image-aarch64.nix" + inputs.self.nixosModules.server + + inputs.self.nixosModules.iot-gw + ]; + + astral = { + monitoring-node.enable = mkForce false; + tailscale.enable = mkForce false; + }; + + boot.loader.grub.enable = false; + hardware.enableRedistributableFirmware = true; + + networking = { + hostName = "squid"; + domain = "h.astrid.tech"; + }; + + time.timeZone = "US/Pacific"; + + sdImage.compressImage = false; +} diff --git a/machines/squid/machine-info.nix b/machines/squid/machine-info.nix new file mode 100644 index 00000000..56f06095 --- /dev/null +++ b/machines/squid/machine-info.nix @@ -0,0 +1 @@ +{ arch = "aarch64-linux"; } diff --git a/nix/nixos-modules/roles.nix b/nix/nixos-modules/roles.nix index 04481773..b4518969 100644 --- a/nix/nixos-modules/roles.nix +++ b/nix/nixos-modules/roles.nix @@ -16,6 +16,7 @@ let media-server = ./roles/media-server; monitoring-center = ./roles/monitoring-center; nextcloud = ./roles/nextcloud.nix; + octoprint = ./roles/octoprint.nix; piwigo = ./roles/piwigo; sso-provider = ./roles/sso-provider; vault = ./roles/vault; diff --git a/nix/nixos-modules/roles/octoprint.nix b/nix/nixos-modules/roles/octoprint.nix new file mode 100644 index 00000000..65545e47 --- /dev/null +++ b/nix/nixos-modules/roles/octoprint.nix @@ -0,0 +1 @@ +inputs: { services.octoprint.enable = true; }