mirror of
https://github.com/XNM1/linux-nixos-hyprland-config-dotfiles.git
synced 2025-09-15 09:45:58 +03:00
refactored .gitconfig
This commit is contained in:
@@ -268,7 +268,7 @@ Here are some tips to enhance your Rust experience on this system:
|
|||||||
This repo contains a NixOS configuration file (`nixos/yubikey.nix`) enabling:
|
This repo contains a NixOS configuration file (`nixos/yubikey.nix`) enabling:
|
||||||
|
|
||||||
- Yubikey authentication with pam_u2f
|
- Yubikey authentication with pam_u2f
|
||||||
- Passwordless login in greetd, sudo, and swaylock
|
- Passwordless login in greetd, sudo, ssh, and swaylock
|
||||||
|
|
||||||
🚨 Personal Recommendation: While convenient, using a Yubikey for display managers (like greetd) and screen lockers (like swaylock) without additional two-factor or multi-factor authentication (2FA/MFA) has risks. If your Yubikey is lost or stolen, someone could gain full system access before you reset keys. Yubikeys excel at protecting against online attacks but are less secure against offline attacks.
|
🚨 Personal Recommendation: While convenient, using a Yubikey for display managers (like greetd) and screen lockers (like swaylock) without additional two-factor or multi-factor authentication (2FA/MFA) has risks. If your Yubikey is lost or stolen, someone could gain full system access before you reset keys. Yubikeys excel at protecting against online attacks but are less secure against offline attacks.
|
||||||
|
|
||||||
|
@@ -12,4 +12,4 @@ aliases:
|
|||||||
# The path to a unix socket through which send HTTP connections. If blank, HTTP traffic will be handled by net/http.DefaultTransport.
|
# The path to a unix socket through which send HTTP connections. If blank, HTTP traffic will be handled by net/http.DefaultTransport.
|
||||||
http_unix_socket:
|
http_unix_socket:
|
||||||
# What web browser gh should use when opening URLs. If blank, will refer to environment.
|
# What web browser gh should use when opening URLs. If blank, will refer to environment.
|
||||||
browser: qutebrowser
|
browser: brave
|
||||||
|
@@ -1,9 +1,11 @@
|
|||||||
[user]
|
[includeIf "gitdir:~/projects/"]
|
||||||
email = artem.shv@proton.me
|
path = ~/projects/.gitconfig.personal
|
||||||
name = xnm
|
|
||||||
[credential "https://github.com"]
|
[includeIf "gitdir:~/work/"]
|
||||||
helper =
|
path = ~/work/.gitconfig.work
|
||||||
helper = !/run/current-system/sw/bin/gh auth git-credential
|
|
||||||
[credential "https://gist.github.com"]
|
[core]
|
||||||
helper =
|
excludesfile = ~/.gitignore
|
||||||
helper = !/run/current-system/sw/bin/gh auth git-credential
|
|
||||||
|
[gpg]
|
||||||
|
format = ssh
|
||||||
|
17
home/.ssh/config
Normal file
17
home/.ssh/config
Normal file
@@ -0,0 +1,17 @@
|
|||||||
|
Host github.com-xnm1
|
||||||
|
HostName github.com
|
||||||
|
User git
|
||||||
|
IdentityFile ~/.ssh/github
|
||||||
|
AddKeysToAgent yes
|
||||||
|
|
||||||
|
Host github.com-artemplummy
|
||||||
|
HostName github.com
|
||||||
|
User git
|
||||||
|
IdentityFile ~/.ssh/work
|
||||||
|
AddKeysToAgent yes
|
||||||
|
|
||||||
|
Host bitbucket.org-artemplummy
|
||||||
|
HostName bitbucket.org
|
||||||
|
User git
|
||||||
|
IdentityFile ~/.ssh/work
|
||||||
|
AddKeysToAgent yes
|
10
home/projects/.gitconfig.personal
Normal file
10
home/projects/.gitconfig.personal
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
[user]
|
||||||
|
email = artem.shv@proton.me
|
||||||
|
name = xnm
|
||||||
|
signingkey = ~/.ssh/github.pub
|
||||||
|
|
||||||
|
[github]
|
||||||
|
user = "XNM1"
|
||||||
|
|
||||||
|
[core]
|
||||||
|
sshCommand = "ssh -i ~/.ssh/github"
|
13
home/work/.gitconfig.work
Normal file
13
home/work/.gitconfig.work
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
[user]
|
||||||
|
email = artem.shevchenko@plummygames.com
|
||||||
|
name = artemplummy
|
||||||
|
signingkey = ~/.ssh/work.pub
|
||||||
|
|
||||||
|
[github]
|
||||||
|
user = "artemplummy"
|
||||||
|
|
||||||
|
[bitbucket]
|
||||||
|
user = "artemplummy"
|
||||||
|
|
||||||
|
[core]
|
||||||
|
sshCommand = "ssh -i ~/.ssh/work"
|
Reference in New Issue
Block a user