darwin added

This commit is contained in:
Matthew Bessette
2026-02-25 10:40:20 -05:00
parent a626098656
commit 258ffea293
7 changed files with 176 additions and 101 deletions

BIN
_hosts/.DS_Store vendored Normal file

Binary file not shown.

View File

@@ -5,7 +5,6 @@
./hardware-configuration.nix
../../nixos-modules
inputs.home-manager.nixosModules.default
inputs.vscode-server.nixosModules.default
];
# This value determines the NixOS release from which the default
@@ -100,6 +99,5 @@
enable = true;
};
services.vscode-server.enable = true;
virtualisation.docker.enable = true;
}

View File

@@ -0,0 +1,37 @@
{ pkgs, ... }: {
nixpkgs.config.allowUnfree = true;
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";
system.primaryUser = "matthew.bessette";
users.users."matthew.bessette" = {
name = "matthew.bessette";
home = "/Users/matthew.bessette";
};
# Homebrew for Casks and specific binaries
homebrew = {
enable = true;
onActivation.cleanup = "uninstall";
taps = [ "bufbuild/buf" "jacobjohansen/tap" ];
brews = [ "jacobjohansen/tap/rds-auth-proxy"];
casks = [
"android-commandlinetools"
"android-platform-tools"
"bruno"
"kopiaui"
"libreoffice"
"signal"
"spotify"
"yubico-yubikey-manager"
"visual-studio-code"
"zoom"
];
};
nix.settings.experimental-features = "nix-command flakes";
system.stateVersion = 4;
}

View File

@@ -0,0 +1,77 @@
{ pkgs, ... }: {
home.stateVersion = "23.11";
home.username = "matthew.bessette";
home.homeDirectory = "/Users/matthew.bessette";
home.packages = with pkgs; [
# Dev Specs
python3
pipenv
nodejs_22
yarn
jdk17
# DB
postgresql_16 # pgdump/restore
# CLI Tools from your Brewfile
xz
ffmpeg
earthly
awscli2
buf
];
# Managed VS Code Extensions (The "Clean" Way)
programs.vscode = {
enable = true;
profiles.default = {
extensions = with pkgs.vscode-extensions; [
ms-python.python
ms-python.vscode-pylance
ms-python.debugpy
hashicorp.terraform
esbenp.prettier-vscode
dbaeumer.vscode-eslint
eamodio.gitlens
redhat.vscode-xml
mechatroner.rainbow-csv
bbenoist.nix
# Note: Some niche extensions might need to be installed manually in VS Code
];
};
};
# Automatically load the 1Password agent in your shell
programs.zsh = {
enable = true;
enableCompletion = true;
autosuggestion.enable = true;
syntaxHighlighting.enable = true;
oh-my-zsh.enable = true;
oh-my-zsh.theme = "robbyrussell";
oh-my-zsh.plugins = [
"git"
"npm"
];
initContent = ''
export SSH_AUTH_SOCK=~/Library/Group\ Containers/2BU8OCWD5C.com.1password/t/agent.sock
'';
shellAliases = {
ll = "ls -l";
update = "sudo darwin-rebuild switch --flake ~/nixos#cleo-darwin";
laws = "aws --endpoint=http://localhost:4566";
dev = "nix develop -c $SHELL";
nixos = "code ~/nixos";
};
};
home.sessionVariables = {
# Points to the Homebrew location mentioned in your caveat
ANDROID_HOME = "/opt/homebrew/share/android-commandlinetools";
JAVA_HOME = "${pkgs.jdk17}";
};
}