{ config, pkgs, lib, ... }: { options = { my.systemType = lib.mkOption { type = lib.types.str; default = "aarch64-darwin"; }; my.hostname = lib.mkOption { type = lib.types.str; }; }; config = { services.nix-daemon.enable = true; nix = { package = pkgs.lix; settings = { trusted-users = [ "root" "@wheel" ]; substituters = lib.mkForce [ "https://cache.nixos.org/" "s3://lukegb-nix-cache?endpoint=storage.googleapis.com&trusted=1" ]; trusted-substituters = lib.mkForce [ "https://cache.nixos.org/" "s3://lukegb-nix-cache?endpoint=storage.googleapis.com&trusted=1" ]; experimental-features = [ "nix-command" "flakes" ]; builders-use-substitutes = "true"; }; }; system.checks.verifyNixPath = false; services.tailscale.enable = lib.mkDefault true; system.darwinLabel = "${config.my.hostname}-${config.system.nixpkgsVersion}+${config.system.darwinVersion}"; networking = { computerName = config.my.hostname; hostName = config.my.hostname; localHostName = config.my.hostname; }; }; }