mirror of
https://github.com/Gerg-L/nixos.git
synced 2025-12-10 00:43:56 -05:00
added direnv and actually changed username and email in git
This commit is contained in:
parent
c5d0fd4cbf
commit
f2e6e564b5
7 changed files with 35 additions and 12 deletions
|
|
@ -1,4 +1,7 @@
|
|||
{pkgs, ...}: rec {
|
||||
#put:
|
||||
#source /run/current-system/sw/share/nix-direnv/direnvrc
|
||||
#in ~/.direnvrc
|
||||
environment = {
|
||||
systemPackages = with pkgs; [
|
||||
dash
|
||||
|
|
@ -8,6 +11,8 @@
|
|||
st
|
||||
exa
|
||||
fetch-rs
|
||||
direnv
|
||||
(pkgs.nix-direnv.override {enableFlakes = true;})
|
||||
];
|
||||
binsh = "${pkgs.dash}/bin/dash"; #use dash for speed
|
||||
variables = {
|
||||
|
|
@ -17,6 +22,7 @@
|
|||
SYSTEMD_PAGERSECURE = "true";
|
||||
TERMINAL = "st";
|
||||
NIX_BUILD_SHELL = "zsh";
|
||||
DIRENV_LOG_FORMAT = "";
|
||||
};
|
||||
shellAliases = {
|
||||
#make sudo use aliases
|
||||
|
|
@ -45,6 +51,9 @@
|
|||
lt = "exa --tree --level=2";
|
||||
};
|
||||
interactiveShellInit = "fetch-rs";
|
||||
pathsToLink = [
|
||||
"/share/nix-direnv"
|
||||
];
|
||||
};
|
||||
security.sudo = {
|
||||
enable = true;
|
||||
|
|
@ -66,13 +75,16 @@
|
|||
syntaxHighlighting = {
|
||||
enable = true;
|
||||
};
|
||||
shellInit = ''
|
||||
eval "$(direnv hook zsh)"
|
||||
'';
|
||||
};
|
||||
#starship
|
||||
starship = {
|
||||
enable = true;
|
||||
settings = {
|
||||
add_newline = false;
|
||||
format = "$sudo$cmd_duration \n $directory$git_branch$character";
|
||||
format = "$sudo\${custom.direnv} $cmd_duration \n $directory$git_branch$character";
|
||||
character = {
|
||||
success_symbol = "[ ](#9ece6a bold)";
|
||||
error_symbol = "[ ](#db4b4b bold)";
|
||||
|
|
@ -91,6 +103,11 @@
|
|||
min_time = 5000;
|
||||
style = "bold #9ece6a";
|
||||
};
|
||||
custom.direnv = {
|
||||
format = "[\\[direnv\\]]($style)";
|
||||
style = "#36c692";
|
||||
detect_folders = [".direnv"];
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue