This commit is contained in:
Matthew Bessette
2026-03-11 14:12:05 -04:00
parent a3d6b1bb1c
commit b7f268e6de
8 changed files with 38 additions and 4 deletions

View File

@@ -15,7 +15,8 @@
environment.systemPath = [ "/opt/homebrew/bin" "/opt/homebrew/sbin" ]; environment.systemPath = [ "/opt/homebrew/bin" "/opt/homebrew/sbin" ];
# Biome config # Biome config
environment.etc."biome.json".source = ../../config/biome.json; environment.etc."biome.json".source = ./config.biome.json;
environment.etc."oxlintrc.json".source = ./config.oxlintrc.json;
system.primaryUser = "matthew.bessette"; system.primaryUser = "matthew.bessette";
users.users."matthew.bessette" = { users.users."matthew.bessette" = {

View File

@@ -33,7 +33,7 @@
programs.vscode = { programs.vscode = {
enable = true; enable = true;
profiles.default = { profiles.default = {
userSettings = builtins.fromJSON (builtins.readFile ../../config/vscode.settings.json); userSettings = builtins.fromJSON (builtins.readFile ./config.vscode.settings.json);
extensions = with pkgs.vscode-extensions; [ extensions = with pkgs.vscode-extensions; [
# graphql.vscode-graphql # graphql.vscode-graphql
biomejs.biome biomejs.biome

31
config.oxlintrc.json Normal file
View File

@@ -0,0 +1,31 @@
{
"plugins": [
"eslint",
"import",
"node",
"oxc",
"promise",
"typescript",
"unicorn"
],
"categories": {
"correctness": "warn",
"suspicious": "error",
"perf": "error"
},
"rules": {
"unicorn/require-module-specifiers": "off",
"eslint/no-restricted-imports": [
"error",
{
"paths": [
{
"name": "zod",
"message": "Use `zod/v4` (legacy `zod` import is disallowed)."
}
]
}
]
}
}

View File

@@ -49,6 +49,8 @@
}, },
"oxc.enable": null, "oxc.enable": null,
"oxc.enable.oxlint": true, "oxc.enable.oxlint": true,
"oxc.configPath": "/etc/oxlintrc.json",
"oxc.disableNestedConfig": true,
"js/ts.updateImportsOnFileMove.enabled": "always", "js/ts.updateImportsOnFileMove.enabled": "always",
"js/ts.experimental.useTsgo": true "js/ts.experimental.useTsgo": true
} }

View File

@@ -76,12 +76,12 @@
specialArgs = { inherit system; inherit inputs; }; specialArgs = { inherit system; inherit inputs; };
system = "aarch64-darwin"; system = "aarch64-darwin";
modules = [ modules = [
./_hosts/cleo-darwin/darwin.nix ./cleo.darwin.nix
home-manager.darwinModules.home-manager home-manager.darwinModules.home-manager
{ {
home-manager.useGlobalPkgs = true; home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true; home-manager.useUserPackages = true;
home-manager.users."matthew.bessette" = import ./_hosts/cleo-darwin/home.nix; home-manager.users."matthew.bessette" = import ./cleo.home.nix;
home-manager.backupFileExtension = ".before-nix"; home-manager.backupFileExtension = ".before-nix";
} }
]; ];

0
hydrogen.darwin.nix Normal file
View File

0
hydrogen.home.nix Normal file
View File