{ pkgs, inputs, ... }: { nixpkgs.config.allowUnfree = true; nixpkgs.overlays = [ inputs.nix-vscode-extensions.overlays.default ]; ids.gids.nixbld = 350; security.pam.services.sudo_local.touchIdAuth = true; # 1Password SSH Socket environment.variables.SSH_AUTH_SOCK = "~/Library/Group Containers/2BUA8C4S2C.com.1password/t/agent.sock"; # Set vim as default editor environment.variables.EDITOR = "vim"; environment.variables.VISUAL = "vim"; environment.variables.GIT_EDITOR = "vim"; # Add Homebrew to PATH environment.systemPath = [ "/opt/homebrew/bin" "/opt/homebrew/sbin" ]; # Biome config environment.etc."biome.json".source = ./config.biome.json; environment.etc."oxlintrc.json".source = ./config.oxlintrc.json; system.primaryUser = "mbessette"; users.users."mbessette" = { name = "mbessette"; home = "/Users/mbessette"; }; # Homebrew for Casks and specific binaries # In a nix-darwin setup, Homebrew packages are not actually stored inside the Nix store. # Instead, nix-darwin acts as a manager that triggers the standard Homebrew installation # process on your macOS system. homebrew = { enable = true; onActivation.cleanup = "uninstall"; onActivation.autoUpdate = true; onActivation.upgrade = true; taps = [ "bufbuild/buf" "jacobjohansen/tap" ]; brews = [ "biome" ]; casks = [ "1password" "iterm2" "obsidian" "signal" "spotify" ]; }; nix.settings.experimental-features = "nix-command flakes"; system.stateVersion = 4; }