code-cursor config WIP
wildfire: 209 current 2025-06-19 23:30:43 25.05.20250617.36ab78d 6.15.2 * wildfire: 210 current 2025-06-19 23:35:09 25.05.20250617.36ab78d 6.15.2 *
This commit is contained in:
@ -2,6 +2,7 @@
|
|||||||
# This module contains the base settings that every system should have
|
# This module contains the base settings that every system should have
|
||||||
{
|
{
|
||||||
pkgs,
|
pkgs,
|
||||||
|
pkgs-unstable,
|
||||||
inputs,
|
inputs,
|
||||||
...
|
...
|
||||||
}: {
|
}: {
|
||||||
@ -20,6 +21,10 @@
|
|||||||
# Use system packages instead of separate user packages (saves space)
|
# Use system packages instead of separate user packages (saves space)
|
||||||
useGlobalPkgs = true;
|
useGlobalPkgs = true;
|
||||||
useUserPackages = true;
|
useUserPackages = true;
|
||||||
|
# Pass unstable packages to home-manager modules
|
||||||
|
extraSpecialArgs = {
|
||||||
|
pkgs-unstable = pkgs-unstable;
|
||||||
|
};
|
||||||
# User-specific Home Manager configurations
|
# User-specific Home Manager configurations
|
||||||
users.schulze.imports = [
|
users.schulze.imports = [
|
||||||
./home/hyprland.nix # Hyprland window manager user config
|
./home/hyprland.nix # Hyprland window manager user config
|
||||||
@ -29,6 +34,7 @@
|
|||||||
./home/ghostty.nix # Ghostty config
|
./home/ghostty.nix # Ghostty config
|
||||||
./home/gtk.nix # GTK theme
|
./home/gtk.nix # GTK theme
|
||||||
./home/nextcloud.nix # Nextcloud autostart
|
./home/nextcloud.nix # Nextcloud autostart
|
||||||
|
./home/code-cursor.nix # Cursor config
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
61
modules/home/code-cursor.nix
Normal file
61
modules/home/code-cursor.nix
Normal file
@ -0,0 +1,61 @@
|
|||||||
|
{
|
||||||
|
pkgs,
|
||||||
|
pkgs-unstable,
|
||||||
|
...
|
||||||
|
}: {
|
||||||
|
# Cursor configuration
|
||||||
|
programs.vscode = {
|
||||||
|
enable = true;
|
||||||
|
package = pkgs-unstable.code-cursor;
|
||||||
|
profiles.default.enableUpdateCheck = false;
|
||||||
|
profiles.default.enableExtensionUpdateCheck = false;
|
||||||
|
profiles.default.extensions = with pkgs.vscode-extensions; [
|
||||||
|
ms-python.python # Python language
|
||||||
|
ms-python.vscode-pylance # Python LS
|
||||||
|
ms-python.black-formatter # Python formatter
|
||||||
|
|
||||||
|
dbaeumer.vscode-eslint # ESLint JS
|
||||||
|
esbenp.prettier-vscode # Prettier code formatting
|
||||||
|
bradlc.vscode-tailwindcss # Tailwind IntelliSense
|
||||||
|
unifiedjs.vscode-mdx # MDX language
|
||||||
|
# csstools.postcss # PostCSS language # not available
|
||||||
|
|
||||||
|
waderyan.gitblame # Git blame
|
||||||
|
|
||||||
|
jdinhlife.gruvbox # Gruvbox theme
|
||||||
|
vscode-icons-team.vscode-icons # Icons
|
||||||
|
|
||||||
|
golang.go # Go language
|
||||||
|
budparr.language-hugo-vscode # HUGO language
|
||||||
|
bungcip.better-toml # TOML
|
||||||
|
|
||||||
|
jnoortheen.nix-ide # Nix language
|
||||||
|
|
||||||
|
# pgourlain.erlang # Erlang language # not available
|
||||||
|
|
||||||
|
redhat.vscode-yaml # YAML
|
||||||
|
ms-vscode.hexeditor # Hex editor
|
||||||
|
];
|
||||||
|
profiles.default.userSettings = {
|
||||||
|
"files.autoSave" = "onFocusChange";
|
||||||
|
"editor.fontFamily" = "'Intel One Mono', 'Droid Sans Mono', 'monospace', monospace";
|
||||||
|
"editor.tabSize" = 2;
|
||||||
|
"editor.wordWrap" = "on";
|
||||||
|
"workbench.colorTheme" = "Gruvbox Dark Medium";
|
||||||
|
"workbench.iconTheme" = "vscode-icons";
|
||||||
|
"editor.defaultFormatter" = "esbenp.prettier-vscode";
|
||||||
|
"editor.fontLigatures" = "'ss01'";
|
||||||
|
"editor.formatOnSave" = true;
|
||||||
|
"prettier.printWidth" = 120;
|
||||||
|
"prettier.proseWrap" = "always";
|
||||||
|
"vsicons.dontShowNewVersionMessage" = true;
|
||||||
|
"editor.minimap.enabled" = true;
|
||||||
|
"cursor.cpp.enablePartialAccepts" = true;
|
||||||
|
"cursor.diffs.useCharacterLevelDiffs" = true;
|
||||||
|
"nix.enableLanguageServer" = true;
|
||||||
|
"[nix]" = {
|
||||||
|
"editor.defaultFormatter" = "jnoortheen.nix-ide";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
Reference in New Issue
Block a user