This commit is contained in:
Matthew Bessette
2026-03-11 12:08:03 -04:00
parent 618595addb
commit a3d6b1bb1c
4 changed files with 75 additions and 13 deletions

View File

@@ -14,6 +14,9 @@
# Add Homebrew to PATH
environment.systemPath = [ "/opt/homebrew/bin" "/opt/homebrew/sbin" ];
# Biome config
environment.etc."biome.json".source = ../../config/biome.json;
system.primaryUser = "matthew.bessette";
users.users."matthew.bessette" = {
name = "matthew.bessette";

View File

@@ -1,4 +1,4 @@
{ pkgs, ... }: {
{ config, pkgs, ... }: {
home.stateVersion = "23.11";
home.username = "matthew.bessette";
@@ -23,8 +23,6 @@
buf
];
xdg.configFile."biome.json".source = ../../config/biome.json;
# Enable direnv for automatic environment switching
programs.direnv = {
enable = true;
@@ -51,6 +49,7 @@
ms-python.python
ms-python.vscode-pylance
redhat.vscode-xml
# typescriptteam.native-preview
];
};
};
@@ -98,5 +97,35 @@
# Points to the Homebrew location mentioned in your caveat
ANDROID_HOME = "/opt/homebrew/share/android-commandlinetools";
JAVA_HOME = "${pkgs.jdk17}";
NPM_CONFIG_PREFIX = "${config.home.homeDirectory}/.npm-global";
};
home.sessionPath = [
"${config.home.homeDirectory}/.npm-global/bin"
];
home.file.".npmrc".text = ''
prefix=${config.home.homeDirectory}/.npm-global
'' ;
programs.git = {
enable = true;
settings.user = {
name = "Matthew Bessette";
email = "matthew.bessette@hicleo.com";
};
settings.init.defaultBranch = "main";
# This creates ~/.config/git/ignore and sets core.excludesFile
ignores = [
"biome.json"
"flake.lock"
"flake.nix"
".DS_Store"
".direnv"
".envrc"
];
};
}