Still fixing the git...

This commit is contained in:
jeirmeister 2024-10-30 03:40:36 -07:00
parent 63eb82868b
commit e88a2b66dc
3 changed files with 43 additions and 29 deletions

View File

@ -1,4 +1,4 @@
{ config, pkgs, ... }:
{ config, pkgs, lib, ... }:
{
programs.git = {
@ -14,8 +14,10 @@
# Configure credential helper
credential = {
helper = "${pkgs.git-credential-manager}/bin/git-credential-manager";
useHttpPath = true;
};
# Add additional required configurations
safe.directory = "*";
};
ignores = [
@ -26,15 +28,11 @@
];
};
# Ensure required KDE packages are installed
# Ensure required packages are installed
home.packages = with pkgs; [
git-credential-manager
ksshaskpass
];
# Set environment variables for KDE integration
home.sessionVariables = {
GIT_ASKPASS = "${pkgs.ksshaskpass}/bin/ksshaskpass";
SSH_ASKPASS = "${pkgs.ksshaskpass}/bin/ksshaskpass";
};
# Enable XDG directories
xdg.enable = true;
}

View File

@ -1,19 +1,21 @@
{ config, pkgs, ... }:
{
programs.vscode = {
enable = true; # Make sure this is enabled
extensions = with pkgs.vscode-extensions; [
# Essential
vscodevim.vim
# Essentia
ms-vsliveshare.vsliveshare
github.copilot
# Languages
bbenoist.nix
# bbenoist.nix
ms-python.python
rust-lang.rust-analyzer
# Tools
eamodio.gitlens
# eamodio.gitlens
ms-azuretools.vscode-docker
# Theme & UI
@ -22,6 +24,7 @@
];
userSettings = {
# Existing settings
"editor.fontSize" = 14;
"editor.fontFamily" = "FiraCode Nerd Font";
"editor.formatOnSave" = true;
@ -31,6 +34,24 @@
"editor.rulers" = [ 80 120 ];
"files.trimTrailingWhitespace" = 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";
};
};
}

View File

@ -18,11 +18,6 @@
initExtra = ''
# Add home-manager applications to 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
'';
};