nix-files/hosts/modules/roles/build-machine.nix

21 lines
462 B
Nix
Raw Normal View History

{ config, lib, ... }:
let
inherit (lib) mkIf mkOption types;
in
{
options.sane.roles.build-machine = mkOption {
type = types.bool;
default = false;
};
config = mkIf config.sane.roles.build-machine {
# serve packages to other machines that ask for them
sane.services.nixserve.enable = true;
# enable cross compilation
boot.binfmt.emulatedSystems = [ "aarch64-linux" ];
# nixpkgs.config.allowUnsupportedSystem = true;
};
}