mirror of
https://github.com/srid/nixos-config.git
synced 2026-01-07 00:17:24 +08:00
shell, starship
This commit is contained in:
parent
c0799a3ba2
commit
d9706e1dea
5 changed files with 31 additions and 20 deletions
|
|
@ -115,13 +115,21 @@
|
|||
./features/caches/oss.nix
|
||||
home-manager.darwinModules.home-manager
|
||||
{
|
||||
# TODO: Refactor-DRY with Linux's home.nix
|
||||
home-manager.extraSpecialArgs = { inherit system inputs; };
|
||||
home-manager.users.srid = { pkgs, ... }: {
|
||||
imports = [
|
||||
./home/git.nix
|
||||
./home/tmux.nix
|
||||
./home/neovim.nix
|
||||
./home/starship.nix
|
||||
];
|
||||
programs.zsh = {
|
||||
enable = true;
|
||||
shellAliases = {
|
||||
g = "${pkgs.git}/bin/git";
|
||||
};
|
||||
};
|
||||
home.stateVersion = "21.11";
|
||||
};
|
||||
}
|
||||
|
|
|
|||
20
home.nix
20
home.nix
|
|
@ -4,6 +4,8 @@ rec {
|
|||
inputs.nix-doom-emacs.hmModule
|
||||
./home/tmux.nix
|
||||
./home/git.nix
|
||||
./home/neovim.nix
|
||||
./home/starship.nix
|
||||
];
|
||||
|
||||
home.packages = with pkgs; [
|
||||
|
|
@ -87,24 +89,6 @@ rec {
|
|||
};
|
||||
};
|
||||
|
||||
starship =
|
||||
{
|
||||
enable = true;
|
||||
settings = {
|
||||
username = {
|
||||
format = "[$user](bold blue) ";
|
||||
disabled = false;
|
||||
show_always = true;
|
||||
};
|
||||
hostname = {
|
||||
ssh_only = false;
|
||||
format = "on [$hostname](bold red) ";
|
||||
trim_at = ".companyname.com";
|
||||
disabled = false;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
bat.enable = true;
|
||||
autojump.enable = false;
|
||||
zoxide.enable = true;
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@
|
|||
s = "status";
|
||||
st = "status";
|
||||
b = "branch";
|
||||
p = "pull --rebase";
|
||||
# p = "pull --rebase";
|
||||
pu = "push";
|
||||
};
|
||||
ignores = [ "*~" "*.swp" ];
|
||||
|
|
|
|||
18
home/starship.nix
Normal file
18
home/starship.nix
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
{
|
||||
programs.starship = {
|
||||
enable = true;
|
||||
settings = {
|
||||
username = {
|
||||
format = "[$user](bold blue) ";
|
||||
disabled = false;
|
||||
show_always = true;
|
||||
};
|
||||
hostname = {
|
||||
ssh_only = false;
|
||||
format = "on [$hostname](bold red) ";
|
||||
trim_at = ".companyname.com";
|
||||
disabled = false;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
@ -36,6 +36,7 @@
|
|||
|
||||
nixpkgs.config.allowBroken = true;
|
||||
|
||||
# For home-manager to work.
|
||||
users.users.srid.name = "srid";
|
||||
users.users.srid.home = "/Users/srid";
|
||||
|
||||
|
|
@ -48,7 +49,7 @@
|
|||
# nix.package = pkgs.nix;
|
||||
|
||||
# Create /etc/bashrc that loads the nix-darwin environment.
|
||||
programs.zsh.enable = true; # default shell on catalina
|
||||
# programs.zsh.enable = true; # default shell on catalina
|
||||
# programs.fish.enable = true;
|
||||
|
||||
# Used for backwards compatibility, please read the changelog before changing.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue