CrOS/hosts/nixos/Datto/default.nix
TheWanderingCrow d43f9c0c79 octoprint
2025-07-13 17:22:43 -04:00

58 lines
992 B
Nix

##########################
# #
# Datto - OctoPrint Node #
# #
##########################
{
inputs,
lib,
pkgs,
...
}: {
imports = lib.flatten [
# Disks
inputs.disko.nixosModules.disko
(lib.custom.relativeToRoot "hosts/common/disks/btrfs-disk.nix")
{
_module.args = {
disk = "/dev/sda";
withSwap = true;
swapSize = "8";
};
}
# Misc
(map lib.custom.relativeToRoot [
# Required configs
"hosts/common/core"
# Optional configs
])
];
services.octoprint = {
enable = true;
openFirewall = true;
port = 5000;
};
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
hostSpec = {
hostName = "Datto";
persistFolder = "/persist";
};
networking = {
networkmanager.enable = true;
enableIPv6 = false;
};
boot.loader = {
systemd-boot.enable = true;
efi = {
canTouchEfiVariables = true;
};
};
}