Skip to content

Commit

Permalink
add squid machine
Browse files Browse the repository at this point in the history
  • Loading branch information
ifd3f committed Oct 20, 2023
1 parent 51d7ddb commit 3613d88
Show file tree
Hide file tree
Showing 5 changed files with 33 additions and 0 deletions.
3 changes: 3 additions & 0 deletions machines/squid/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# `squid`

Raspberry Pi that does my 3d printer
27 changes: 27 additions & 0 deletions machines/squid/configuration.nix
Original file line number Diff line number Diff line change
@@ -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;
}
1 change: 1 addition & 0 deletions machines/squid/machine-info.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{ arch = "aarch64-linux"; }
1 change: 1 addition & 0 deletions nix/nixos-modules/roles.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
1 change: 1 addition & 0 deletions nix/nixos-modules/roles/octoprint.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
inputs: { services.octoprint.enable = true; }

0 comments on commit 3613d88

Please sign in to comment.