starship
This commit is contained in:
parent
14912f98c5
commit
4e56e3266a
2 changed files with 173 additions and 31 deletions
|
|
@ -1,42 +1,34 @@
|
|||
let
|
||||
enablePrograms = programs: builtins.mapAttrs (_: program: { enable = true; }) programs;
|
||||
in
|
||||
{
|
||||
imports = [
|
||||
./helix.nix
|
||||
];
|
||||
|
||||
programs.nushell = {
|
||||
enable = true;
|
||||
configFile.source = ./config.nu;
|
||||
envFile.source = ./env.nu;
|
||||
};
|
||||
|
||||
programs.git = {
|
||||
enable = true;
|
||||
userName = "Tao Tien";
|
||||
userEmail = "29749622+taotien@users.noreply.github.com";
|
||||
};
|
||||
|
||||
programs.starship = {
|
||||
enable = true;
|
||||
enableNushellIntegration = true;
|
||||
settings = {
|
||||
nix_shell = {
|
||||
disabled = false;
|
||||
impure_msg = ";[impure shell](bold red)";
|
||||
pure_msg = ";[pure shell](bold green)";
|
||||
unknown_msg = ";[unknown shell](bold yellow)";
|
||||
format = "via [☃️ $state( \($name\))](bold blue)";
|
||||
};
|
||||
programs = enablePrograms {
|
||||
git = {
|
||||
userName = "Tao Tien";
|
||||
userEmail = "29749622+taotien@users.noreply.github.com";
|
||||
};
|
||||
};
|
||||
|
||||
programs.wezterm = {
|
||||
enable = true;
|
||||
extraConfig = builtins.readFile ./wezterm.lua;
|
||||
};
|
||||
nushell = {
|
||||
configFile.source = ./config.nu;
|
||||
envFile.source = ./env.nu;
|
||||
};
|
||||
|
||||
programs.zoxide = {
|
||||
enable = true;
|
||||
enableNushellIntegration = true;
|
||||
starshell = {
|
||||
enableNuShellIntegration = true;
|
||||
settings = builtins.fromTOML (builtins.readFile ./starship.nix);
|
||||
};
|
||||
|
||||
wezterm = {
|
||||
extraConfig = builtins.readFile ./wezterm.lua;
|
||||
};
|
||||
|
||||
zoxide = {
|
||||
enableNushellIntegration = true;
|
||||
};
|
||||
};
|
||||
|
||||
home.username = "tao";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue