From 0df27a2b62c992951045090e694362c26c8b11f2 Mon Sep 17 00:00:00 2001 From: wangfiox Date: Sun, 16 Jun 2024 00:15:04 +0800 Subject: [PATCH] modified: shell.nix --- shell.nix | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/shell.nix b/shell.nix index b3250b5..4ee1eb9 100644 --- a/shell.nix +++ b/shell.nix @@ -6,4 +6,12 @@ pkgs.mkShell { # This can also be fixed by using oxalica/rust-overlay and specifying the rust-src extension # See https://discourse.nixos.org/t/rust-src-not-found-and-other-misadventures-of-developing-rust-on-nixos/11570/3?u=samuela. for more details. RUST_SRC_PATH = "${pkgs.rust.packages.stable.rustPlatform.rustLibSrc}"; + shellHook = '' + # Set fish as the default shell + SHELL=${pkgs.fish}/bin/fish + + # Configure git + git config --global user.name "wangfiox" + git config --global user.email "wangfiox@gmail.com" + ''; }