add hydrogen config

This commit is contained in:
Matthew Bessette
2026-03-12 22:44:21 -04:00
parent 776382727c
commit d798450d5a
4 changed files with 434 additions and 4 deletions

View File

@@ -0,0 +1,52 @@
{ 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/2BU8OCWD5C.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;
}