Skip to content

Commit

Permalink
move git into own file again
Browse files Browse the repository at this point in the history
  • Loading branch information
PeterStolz committed Dec 16, 2024
1 parent 083c83b commit d56f9c5
Show file tree
Hide file tree
Showing 4 changed files with 41 additions and 30 deletions.
22 changes: 14 additions & 8 deletions home-manager/fish.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,21 @@

{
enable = true;
interactiveShellInit = ''
starship init fish | source
set fish_greeting # Disable greeting
set -gx GPG_TTY (tty)
set -gx LD_LIBRARY_PATH $NIX_LD_LIBRARY_PATH
'' + (if pkgs.stdenv.isDarwin then
interactiveShellInit =
''
fish_add_path /opt/homebrew/bin
'' else "");
starship init fish | source
set fish_greeting # Disable greeting
set -gx GPG_TTY (tty)
set -gx LD_LIBRARY_PATH $NIX_LD_LIBRARY_PATH
''
+ (
if pkgs.stdenv.isDarwin then
''
fish_add_path /opt/homebrew/bin
''
else
""
);
shellAliases = {
vim = "nvim";
hm = "home-manager";
Expand Down
23 changes: 23 additions & 0 deletions home-manager/git.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{ pkgs, ... }:

{
enable = true;
userName = "Peter Stolz";
userEmail = "[email protected]";
lfs.enable = true;
aliases = {
graph = "log --all --decorate --oneline --graph";
};
extraConfig = {
user.signingkey = "1D68343249781AD9";
gpg.program = "gpg";
push.autoSetupRemote = true;
commit.gpgsign = true;
core.editor = "nvim";
core.autocrlf = "input";
init.defaultBranch = "main";
safe.directory = "/etc/nixos";
stash.showPatch = true;
pull.rebase = true;
};
}
25 changes: 3 additions & 22 deletions home-manager/home.nix
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ let
file
gh
gnupg
graphviz
hadolint
hcloud
htop
Expand All @@ -42,6 +43,7 @@ let
python312Full
redis
s3cmd
sshfs
tilt
unzip
yarn
Expand Down Expand Up @@ -84,28 +86,7 @@ in
settings = pkgs.lib.importTOML ./dotfiles/starship.toml;
};

git = {
enable = true;
userName = "Peter Stolz";
userEmail = "[email protected]";
lfs.enable = true;
aliases = {
graph = "log --all --decorate --oneline --graph";
};
extraConfig = {
user.signingkey = "1D68343249781AD9";
gpg.program = "gpg";
push.autoSetupRemote = true;
commit.gpgsign = true;
core.editor = "nvim";
core.autocrlf = "input";
init.defaultBranch = "main";
safe.directory = "/etc/nixos";
stash.showPatch = true;
pull.rebase = true;
};
};

git = import ./git.nix { inherit pkgs; };
yt-dlp.enable = true;

kitty = {
Expand Down
1 change: 1 addition & 0 deletions home-manager/vscode.nix
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
oderwat.indent-rainbow
];
userSettings = {
"explorer.confirmDelete" = false;
"javascript.updateImportsOnFileMove.enabled" = "always";
"[python]" = {
"editor.defaultFormatter" = "ms-python.black-formatter";
Expand Down

0 comments on commit d56f9c5

Please sign in to comment.