Compare commits

...

2 Commits

Author SHA1 Message Date
henrov 2ba8de9d84 Trying starship 2026-03-07 23:14:43 +01:00
henrov 44a485c9b8 Working on termonal stuff 2026-03-07 23:12:22 +01:00
3 changed files with 433 additions and 414 deletions
+369 -367
View File
File diff suppressed because it is too large Load Diff
+36 -34
View File
@@ -1105,60 +1105,62 @@ This is top file of this level which contains just an import statement for all r
** =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
#+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} = {
programs.starship = {
enable = true;
# Enable for specific shells (e.g., bash, zsh, fish)
# Starship settings (e.g., theme, modules)
settings = {
# Your Starship config here (e.g., theme, modules)
addNewline = false;
# Other settings...
};
# Enable shell integration (per-shell)
shellIntegration = {
bash.enable = true;
zsh.enable = true;
fish.enable = true;
};
# Enable Starship for specific shells
bash.enable = true;
zsh.enable = true;
fish.enable = true;
};
};
}
#+END_SRC
** =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
#+BEGIN_SRC nix :tangle generated/system/applications/terminal_shell/zsh.nix :noweb tangle :mkdirp yes :eval never-html
{ config, pkgs, lib, ... }:
{
programs.zsh = {
enable = true;
enableCompletion = true;
#autocd = true;
dotDir = "${config.xdg.configHome}/zsh";
oh-my-zsh = {
config,
pkgs,
lib,
user,
...
}:
{
home-manager.users.${user.username} = {
programs.zsh = {
enable = true;
theme = "";
plugins = [
"git"
"sudo"
"extract"
"colored-man-pages"
"command-not-found"
"history"
"docker"
"kubectl"
];
enableCompletion = true;
dotDir = "${config.xdg.configHome}/zsh"; # Now correct: inside Home Manager scope
oh-my-zsh = {
enable = true;
theme = "";
plugins = [
"git"
"sudo"
"extract"
"colored-man-pages"
"command-not-found"
"history"
"docker"
"kubectl"
];
};
autosuggestion.enable = true;
syntaxHighlighting.enable = true;
zshoptions = [ "AUTO_CD" ];
};
autosuggestion.enable = true;
syntaxHighlighting.enable = true;
};
}
#+END_SRC
** =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 ];
# Home Manager configuration for Starship
# Home Manager: Configure Starship for the user
home-manager.users.${user.username} = {
programs.starship = {
enable = true;
# Enable for specific shells (e.g., bash, zsh, fish)
enable = true; # Enables Starship and adds init to shell configs
settings = {
# Your Starship config here (e.g., theme, modules)
addNewline = false;
};
# Enable shell integration (per-shell)
shellIntegration = {
bash.enable = true;
zsh.enable = true;
fish.enable = true;
# Example: Catppuccin Mocha theme
add_newline = false;
format = "$all";
[character]
success_symbol = "[](bold green)"
error_symbol = "[](bold red)"
vicmd_symbol = "[](bold blue)"
[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)\""
];
};
}