Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 2ba8de9d84 | |||
| 44a485c9b8 |
+338
-336
File diff suppressed because it is too large
Load Diff
+16
-14
@@ -1105,42 +1105,41 @@ This is top file of this level which contains just an import statement for all r
|
|||||||
** =generated/system/applications/terminal_shell/starship.nix=
|
** =generated/system/applications/terminal_shell/starship.nix=
|
||||||
This is top file of this level which contains just an import statement for all relevant files and/or the subfolder in this folder
|
This is top file of this level which contains just an import statement for all relevant files and/or the subfolder in this folder
|
||||||
#+BEGIN_SRC nix :tangle generated/system/applications/terminal_shell/starship.nix :noweb tangle :mkdirp yes :eval never-html
|
#+BEGIN_SRC nix :tangle generated/system/applications/terminal_shell/starship.nix :noweb tangle :mkdirp yes :eval never-html
|
||||||
{ config, pkgs, lib, user, inputs, flakeRoot, ... }:
|
{ config, pkgs, lib, user, ... }:
|
||||||
{
|
{
|
||||||
# Install Starship (optional, system-wide)
|
|
||||||
environment.systemPackages = with pkgs; [ starship ];
|
|
||||||
|
|
||||||
# Home Manager configuration for Starship
|
|
||||||
home-manager.users.${user.username} = {
|
home-manager.users.${user.username} = {
|
||||||
programs.starship = {
|
programs.starship = {
|
||||||
enable = true;
|
enable = true;
|
||||||
# Enable for specific shells (e.g., bash, zsh, fish)
|
# Starship settings (e.g., theme, modules)
|
||||||
settings = {
|
settings = {
|
||||||
# Your Starship config here (e.g., theme, modules)
|
|
||||||
addNewline = false;
|
addNewline = false;
|
||||||
|
# Other settings...
|
||||||
};
|
};
|
||||||
# Enable shell integration (per-shell)
|
# Enable Starship for specific shells
|
||||||
shellIntegration = {
|
|
||||||
bash.enable = true;
|
bash.enable = true;
|
||||||
zsh.enable = true;
|
zsh.enable = true;
|
||||||
fish.enable = true;
|
fish.enable = true;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
|
||||||
** =generated/system/applications/terminal_shell/zsh.nix=
|
** =generated/system/applications/terminal_shell/zsh.nix=
|
||||||
This is top file of this level which contains just an import statement for all relevant files and/or the subfolder in this folder
|
This is top file of this level which contains just an import statement for all relevant files and/or the subfolder in this folder
|
||||||
#+BEGIN_SRC nix :tangle generated/system/applications/terminal_shell/zsh.nix :noweb tangle :mkdirp yes :eval never-html
|
#+BEGIN_SRC nix :tangle generated/system/applications/terminal_shell/zsh.nix :noweb tangle :mkdirp yes :eval never-html
|
||||||
{ config, pkgs, lib, ... }:
|
|
||||||
{
|
{
|
||||||
|
config,
|
||||||
|
pkgs,
|
||||||
|
lib,
|
||||||
|
user,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
{
|
||||||
|
home-manager.users.${user.username} = {
|
||||||
programs.zsh = {
|
programs.zsh = {
|
||||||
enable = true;
|
enable = true;
|
||||||
enableCompletion = true;
|
enableCompletion = true;
|
||||||
#autocd = true;
|
dotDir = "${config.xdg.configHome}/zsh"; # Now correct: inside Home Manager scope
|
||||||
dotDir = "${config.xdg.configHome}/zsh";
|
|
||||||
oh-my-zsh = {
|
oh-my-zsh = {
|
||||||
enable = true;
|
enable = true;
|
||||||
theme = "";
|
theme = "";
|
||||||
@@ -1157,8 +1156,11 @@ This is top file of this level which contains just an import statement for all r
|
|||||||
};
|
};
|
||||||
autosuggestion.enable = true;
|
autosuggestion.enable = true;
|
||||||
syntaxHighlighting.enable = true;
|
syntaxHighlighting.enable = true;
|
||||||
|
zshoptions = [ "AUTO_CD" ];
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
|
||||||
** =generated/system/development/databases/top.nix=
|
** =generated/system/development/databases/top.nix=
|
||||||
|
|||||||
@@ -1,23 +1,38 @@
|
|||||||
{ config, pkgs, lib, user, inputs, flakeRoot, ... }:
|
{ config, pkgs, lib, user, ... }:
|
||||||
{
|
{
|
||||||
# Install Starship (optional, system-wide)
|
# NixOS: Install Starship system-wide (optional)
|
||||||
environment.systemPackages = with pkgs; [ starship ];
|
environment.systemPackages = with pkgs; [ starship ];
|
||||||
|
|
||||||
# Home Manager configuration for Starship
|
# Home Manager: Configure Starship for the user
|
||||||
home-manager.users.${user.username} = {
|
home-manager.users.${user.username} = {
|
||||||
programs.starship = {
|
programs.starship = {
|
||||||
enable = true;
|
enable = true; # Enables Starship and adds init to shell configs
|
||||||
# Enable for specific shells (e.g., bash, zsh, fish)
|
|
||||||
settings = {
|
settings = {
|
||||||
# Your Starship config here (e.g., theme, modules)
|
# Example: Catppuccin Mocha theme
|
||||||
addNewline = false;
|
add_newline = false;
|
||||||
};
|
format = "$all";
|
||||||
# Enable shell integration (per-shell)
|
[character]
|
||||||
shellIntegration = {
|
success_symbol = "[❯](bold green)"
|
||||||
bash.enable = true;
|
error_symbol = "[❯](bold red)"
|
||||||
zsh.enable = true;
|
vicmd_symbol = "[❮](bold blue)"
|
||||||
fish.enable = true;
|
[directory]
|
||||||
|
truncation_length = 3
|
||||||
|
style = "bold blue"
|
||||||
|
[git_branch]
|
||||||
|
symbol = " "
|
||||||
|
style = "bold purple"
|
||||||
|
format = "[$symbol$branch]($style) "
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# Optional: Manually ensure Starship init is in shell configs
|
||||||
|
xdg.configFile."bashrc".text = lib.concatStringsSep "\n" [
|
||||||
|
"${config.programs.starship.extraInit}"
|
||||||
|
"eval \"$(starship init bash)\""
|
||||||
|
];
|
||||||
|
xdg.configFile."zshrc".text = lib.concatStringsSep "\n" [
|
||||||
|
"${config.programs.starship.extraInit}"
|
||||||
|
"eval \"$(starship init zsh)\""
|
||||||
|
];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user