######################### # # # Mote - 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 = "Mote"; persistFolder = "/persist"; }; networking = { networkmanager.enable = true; enableIPv6 = false; }; boot.loader = { systemd-boot.enable = true; efi = { canTouchEfiVariables = true; }; }; }