Still fixing the git...
This commit is contained in:
parent
63eb82868b
commit
e88a2b66dc
@ -1,4 +1,4 @@
|
|||||||
{ config, pkgs, ... }:
|
{ config, pkgs, lib, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
programs.git = {
|
programs.git = {
|
||||||
@ -6,18 +6,20 @@
|
|||||||
lfs.enable = true;
|
lfs.enable = true;
|
||||||
userName = "jeirmeister";
|
userName = "jeirmeister";
|
||||||
userEmail = "jeir@jeirslab.xyz";
|
userEmail = "jeir@jeirslab.xyz";
|
||||||
|
|
||||||
extraConfig = {
|
extraConfig = {
|
||||||
init.defaultBranch = "main";
|
init.defaultBranch = "main";
|
||||||
pull.rebase = false;
|
pull.rebase = false;
|
||||||
|
|
||||||
# Configure credential helper
|
# Configure credential helper
|
||||||
credential = {
|
credential = {
|
||||||
helper = "${pkgs.git-credential-manager}/bin/git-credential-manager";
|
helper = "${pkgs.git-credential-manager}/bin/git-credential-manager";
|
||||||
useHttpPath = true;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# Add additional required configurations
|
||||||
|
safe.directory = "*";
|
||||||
};
|
};
|
||||||
|
|
||||||
ignores = [
|
ignores = [
|
||||||
".DS_Store"
|
".DS_Store"
|
||||||
"*.swp"
|
"*.swp"
|
||||||
@ -26,15 +28,11 @@
|
|||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
# Ensure required KDE packages are installed
|
# Ensure required packages are installed
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
git-credential-manager
|
git-credential-manager
|
||||||
ksshaskpass
|
|
||||||
];
|
];
|
||||||
|
|
||||||
# Set environment variables for KDE integration
|
# Enable XDG directories
|
||||||
home.sessionVariables = {
|
xdg.enable = true;
|
||||||
GIT_ASKPASS = "${pkgs.ksshaskpass}/bin/ksshaskpass";
|
|
||||||
SSH_ASKPASS = "${pkgs.ksshaskpass}/bin/ksshaskpass";
|
|
||||||
};
|
|
||||||
}
|
}
|
@ -1,27 +1,30 @@
|
|||||||
{ config, pkgs, ... }:
|
{ config, pkgs, ... }:
|
||||||
{
|
{
|
||||||
programs.vscode = {
|
programs.vscode = {
|
||||||
|
enable = true; # Make sure this is enabled
|
||||||
|
|
||||||
extensions = with pkgs.vscode-extensions; [
|
extensions = with pkgs.vscode-extensions; [
|
||||||
# Essential
|
# Essentia
|
||||||
vscodevim.vim
|
|
||||||
ms-vsliveshare.vsliveshare
|
ms-vsliveshare.vsliveshare
|
||||||
github.copilot
|
|
||||||
|
|
||||||
# Languages
|
# Languages
|
||||||
bbenoist.nix
|
# bbenoist.nix
|
||||||
ms-python.python
|
ms-python.python
|
||||||
rust-lang.rust-analyzer
|
rust-lang.rust-analyzer
|
||||||
|
|
||||||
# Tools
|
# Tools
|
||||||
eamodio.gitlens
|
# eamodio.gitlens
|
||||||
ms-azuretools.vscode-docker
|
ms-azuretools.vscode-docker
|
||||||
|
|
||||||
# Theme & UI
|
# Theme & UI
|
||||||
pkief.material-icon-theme
|
pkief.material-icon-theme
|
||||||
dracula-theme.theme-dracula
|
dracula-theme.theme-dracula
|
||||||
];
|
];
|
||||||
|
|
||||||
userSettings = {
|
userSettings = {
|
||||||
|
# Existing settings
|
||||||
"editor.fontSize" = 14;
|
"editor.fontSize" = 14;
|
||||||
"editor.fontFamily" = "FiraCode Nerd Font";
|
"editor.fontFamily" = "FiraCode Nerd Font";
|
||||||
"editor.formatOnSave" = true;
|
"editor.formatOnSave" = true;
|
||||||
@ -31,6 +34,24 @@
|
|||||||
"editor.rulers" = [ 80 120 ];
|
"editor.rulers" = [ 80 120 ];
|
||||||
"files.trimTrailingWhitespace" = true;
|
"files.trimTrailingWhitespace" = true;
|
||||||
"editor.bracketPairColorization.enabled" = true;
|
"editor.bracketPairColorization.enabled" = true;
|
||||||
|
|
||||||
|
# Git settings
|
||||||
|
"git.enabled" = true;
|
||||||
|
"git.autofetch" = true;
|
||||||
|
"git.confirmSync" = false;
|
||||||
|
"git.enableSmartCommit" = true;
|
||||||
|
"git.path" = "${pkgs.git}/bin/git";
|
||||||
|
"git.openRepositoryInParentFolders" = "never";
|
||||||
|
|
||||||
|
# GitLens settings (since you have it installed)
|
||||||
|
"gitlens.hovers.currentLine.over" = "line";
|
||||||
|
"gitlens.currentLine.enabled" = true;
|
||||||
|
"gitlens.hovers.enabled" = true;
|
||||||
|
"gitlens.mode.active" = "zen";
|
||||||
|
|
||||||
|
# Credential manager integration
|
||||||
|
"git.terminalAuthentication" = true;
|
||||||
|
"git.credential.helper" = "${pkgs.git-credential-manager}/bin/git-credential-manager";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -7,22 +7,17 @@
|
|||||||
autosuggestion.enable = true;
|
autosuggestion.enable = true;
|
||||||
enableCompletion = true;
|
enableCompletion = true;
|
||||||
syntaxHighlighting.enable = true;
|
syntaxHighlighting.enable = true;
|
||||||
|
|
||||||
oh-my-zsh = {
|
oh-my-zsh = {
|
||||||
enable = true;
|
enable = true;
|
||||||
theme = "robbyrussell";
|
theme = "robbyrussell";
|
||||||
plugins = [ "git" "docker" "kubectl" ];
|
plugins = [ "git" "docker" "kubectl" ];
|
||||||
};
|
};
|
||||||
|
|
||||||
# Add this section to ensure home-manager paths are properly sourced
|
# Add this section to ensure home-manager paths are properly sourced
|
||||||
initExtra = ''
|
initExtra = ''
|
||||||
# Add home-manager applications to PATH
|
# Add home-manager applications to PATH
|
||||||
export PATH=$HOME/.nix-profile/bin:$PATH
|
export PATH=$HOME/.nix-profile/bin:$PATH
|
||||||
|
|
||||||
# Ensure XDG directories are set
|
|
||||||
export XDG_DATA_HOME=$HOME/.local/share
|
|
||||||
export XDG_CONFIG_HOME=$HOME/.config
|
|
||||||
export XDG_CACHE_HOME=$HOME/.cache
|
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user