This commit is contained in:
Matthew Bessette
2026-03-11 14:47:48 -04:00
parent b7f268e6de
commit eec4ed9c81
6 changed files with 42 additions and 8 deletions

View File

@@ -1,5 +1,6 @@
{ pkgs, ... }: { { pkgs, inputs, ... }: {
nixpkgs.config.allowUnfree = true; nixpkgs.config.allowUnfree = true;
nixpkgs.overlays = [ inputs.nix-vscode-extensions.overlays.default ];
ids.gids.nixbld = 350; ids.gids.nixbld = 350;
security.pam.services.sudo_local.touchIdAuth = true; security.pam.services.sudo_local.touchIdAuth = true;

View File

@@ -34,22 +34,22 @@
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-marketplace; [
# graphql.vscode-graphql
biomejs.biome biomejs.biome
bbenoist.nix bbenoist.nix
dbaeumer.vscode-eslint
eamodio.gitlens eamodio.gitlens
esbenp.prettier-vscode github.copilot-chat
graphql.vscode-graphql-syntax graphql.vscode-graphql-syntax
hashicorp.terraform hashicorp.terraform
mechatroner.rainbow-csv mechatroner.rainbow-csv
# mermaidchart.vscode-mermaid-chart mermaidchart.vscode-mermaid-chart
ms-python.debugpy ms-python.debugpy
ms-python.python ms-python.python
ms-python.vscode-pylance ms-python.vscode-pylance
oxc.oxc-vscode
redhat.vscode-xml redhat.vscode-xml
# typescriptteam.native-preview vscode-icons-team.vscode-icons
typescriptteam.native-preview
]; ];
}; };
}; };

View File

@@ -1,6 +1,7 @@
{ {
"$schema": "vscode://schemas/settings/user", "$schema": "vscode://schemas/settings/user",
"debug.javascript.autoAttachFilter": "disabled", "debug.javascript.autoAttachFilter": "disabled",
"editor.insertSpaces": true,
"editor.tabSize": 2, "editor.tabSize": 2,
"editor.unicodeHighlight.ambiguousCharacters": false, "editor.unicodeHighlight.ambiguousCharacters": false,
"editor.unicodeHighlight.invisibleCharacters": false, "editor.unicodeHighlight.invisibleCharacters": false,
@@ -52,5 +53,6 @@
"oxc.configPath": "/etc/oxlintrc.json", "oxc.configPath": "/etc/oxlintrc.json",
"oxc.disableNestedConfig": true, "oxc.disableNestedConfig": true,
"js/ts.updateImportsOnFileMove.enabled": "always", "js/ts.updateImportsOnFileMove.enabled": "always",
"js/ts.experimental.useTsgo": true "js/ts.experimental.useTsgo": true,
"workbench.iconTheme": "vscode-icons"
} }

21
flake.lock generated
View File

@@ -79,6 +79,26 @@
"type": "github" "type": "github"
} }
}, },
"nix-vscode-extensions": {
"inputs": {
"nixpkgs": [
"nixpkgs"
]
},
"locked": {
"lastModified": 1773196667,
"narHash": "sha256-jFlVopQCfQumeZ6iXTJR/jrFvuS408ReTeLfggNiLLM=",
"owner": "nix-community",
"repo": "nix-vscode-extensions",
"rev": "931b0da906b0bf70162d84074c5085934e64750d",
"type": "github"
},
"original": {
"owner": "nix-community",
"repo": "nix-vscode-extensions",
"type": "github"
}
},
"nixos-hardware": { "nixos-hardware": {
"locked": { "locked": {
"lastModified": 1771969195, "lastModified": 1771969195,
@@ -152,6 +172,7 @@
"darwin": "darwin", "darwin": "darwin",
"firefox-addons": "firefox-addons", "firefox-addons": "firefox-addons",
"home-manager": "home-manager", "home-manager": "home-manager",
"nix-vscode-extensions": "nix-vscode-extensions",
"nixos-hardware": "nixos-hardware", "nixos-hardware": "nixos-hardware",
"nixos-wsl": "nixos-wsl", "nixos-wsl": "nixos-wsl",
"nixpkgs": "nixpkgs_2" "nixpkgs": "nixpkgs_2"

View File

@@ -14,6 +14,11 @@
inputs.nixpkgs.follows = "nixpkgs"; inputs.nixpkgs.follows = "nixpkgs";
}; };
nix-vscode-extensions = {
url = "github:nix-community/nix-vscode-extensions";
inputs.nixpkgs.follows = "nixpkgs";
};
firefox-addons = { firefox-addons = {
url = "gitlab:rycee/nur-expressions?dir=pkgs/firefox-addons"; url = "gitlab:rycee/nur-expressions?dir=pkgs/firefox-addons";
inputs.nixpkgs.follows = "nixpkgs"; inputs.nixpkgs.follows = "nixpkgs";
@@ -81,6 +86,7 @@
{ {
home-manager.useGlobalPkgs = true; home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true; home-manager.useUserPackages = true;
home-manager.extraSpecialArgs = { inherit inputs; };
home-manager.users."matthew.bessette" = import ./cleo.home.nix; home-manager.users."matthew.bessette" = import ./cleo.home.nix;
home-manager.backupFileExtension = ".before-nix"; home-manager.backupFileExtension = ".before-nix";
} }

View File

@@ -0,0 +1,4 @@
# Troubleshooting
### Extensions not loading
> The double check ~/.vscode/extensions ONLY has symlinks. If it has a mix, then delete the folder and run update.