reduce calls to contentful
This commit is contained in:
+20
-6
@@ -6,6 +6,9 @@ let
|
||||
ghosttyPkg = if pkgs.stdenv.isDarwin
|
||||
then pkgs."ghostty-bin"
|
||||
else pkgs.ghostty;
|
||||
rebuildCmd = if pkgs.stdenv.isDarwin
|
||||
then "darwin-rebuild"
|
||||
else "nixos-rebuild";
|
||||
in {
|
||||
home.stateVersion = lib.mkDefault "26.05";
|
||||
home.username = userConfig.username;
|
||||
@@ -22,6 +25,9 @@ in {
|
||||
vault = "${userConfig._1PassKeyVault}"
|
||||
'';
|
||||
|
||||
programs.tmux.enable = true;
|
||||
programs.fastfetch.enable = true;
|
||||
|
||||
programs.zsh = {
|
||||
enable = true;
|
||||
enableCompletion = true;
|
||||
@@ -31,7 +37,7 @@ in {
|
||||
shellAliases = {
|
||||
ll = "ls -l";
|
||||
gst = "git status";
|
||||
nix-update = "sudo nixos-rebuild switch --flake ~/nixos#${hostname}";
|
||||
nix-update = "sudo ${rebuildCmd} switch --flake ~/nixos#${hostname}";
|
||||
home-update = "home-manager switch --flake ~/nixos#${userConfig.username}@${hostname}";
|
||||
};
|
||||
};
|
||||
@@ -43,7 +49,7 @@ in {
|
||||
# Optional custom settings (translates to ~/.config/starship.toml)
|
||||
settings = {
|
||||
# Line 1: ➜ folder git:(branch) [status]
|
||||
format = "$character$directory$git_branch\${custom.git_dirty} ";
|
||||
format = "$character$directory$git_branch";
|
||||
|
||||
# Show current directory name only
|
||||
directory = {
|
||||
@@ -54,7 +60,7 @@ in {
|
||||
|
||||
# git:(branch) styling
|
||||
git_branch = {
|
||||
format = "[git:\\([$branch](red)\\)](bold blue)";
|
||||
format = "[git:\\([$branch](red)\\)](bold blue) ";
|
||||
};
|
||||
|
||||
# Bottom line prompt arrow
|
||||
@@ -64,9 +70,8 @@ in {
|
||||
vicmd_symbol = "[➜](bold yellow)";
|
||||
};
|
||||
|
||||
custom.git_dirty = {
|
||||
when = "test -n \"$(git status --porcelain 2>/dev/null)\"";
|
||||
format = " [✘](yellow)";
|
||||
git_status = {
|
||||
disabled = false;
|
||||
};
|
||||
|
||||
# Nix shell indicator module configuration
|
||||
@@ -85,6 +90,7 @@ in {
|
||||
"*" = {
|
||||
ControlMaster = "auto";
|
||||
ControlPath = "~/.ssh/master-%r@%h:%p";
|
||||
ControlPersist = "10m";
|
||||
IdentityAgent = "\"${onePassPath}\"";
|
||||
};
|
||||
};
|
||||
@@ -106,5 +112,13 @@ in {
|
||||
package = ghosttyPkg;
|
||||
enableBashIntegration = true;
|
||||
enableZshIntegration = true;
|
||||
settings = {
|
||||
macos-icon = "chalkboard";
|
||||
keybind = [
|
||||
"home=text:\\x01" # Ctrl-A -> beginning of line
|
||||
"end=text:\\x05" # Ctrl-E -> end of line
|
||||
"delete=text:\\x7f"
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user