Regenerated
This commit is contained in:
+6
-7
@@ -854,17 +854,15 @@ in
|
||||
** =generated/modules/traveldroid/apps/zsh.nix=
|
||||
This sets up the zsh in the terminal
|
||||
#+BEGIN_SRC nix :tangle generated/modules/traveldroid/apps/zsh.nix :noweb yes :mkdirp yes :eval never
|
||||
# --- This file has been auto-generated. For permanent changes alter the appropriate block in the README.org. ---
|
||||
{ lib, config, pkgs, flakeRoot, ... }:
|
||||
|
||||
let
|
||||
# Default username fallback
|
||||
username = config.defaultUser or "henrov";
|
||||
# Path to optional per-user generated zshrc
|
||||
generatedZsh = "${flakeRoot}/generated/.config/zsh/.zshrc";
|
||||
in
|
||||
{
|
||||
#################################
|
||||
# Install Zsh, Oh My Zsh, and Starship system-wide
|
||||
# Install Zsh, Oh My Zsh, Starship and syntax highlighting system-wide
|
||||
#################################
|
||||
environment.systemPackages = with pkgs; [
|
||||
zsh
|
||||
@@ -894,6 +892,9 @@ in
|
||||
|
||||
# Initialize Starship prompt
|
||||
eval "$(starship init zsh)"
|
||||
|
||||
# Syntax highlighting — must be sourced last
|
||||
source ${pkgs.zsh-syntax-highlighting}/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
|
||||
'';
|
||||
|
||||
#################################
|
||||
@@ -902,10 +903,8 @@ in
|
||||
home-manager.users = {
|
||||
${username} = {
|
||||
programs.zsh.enable = true;
|
||||
|
||||
# Include the generated zshrc if you want
|
||||
home.file.".config/zsh/.zshrc".source = generatedZsh;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
#+END_SRC
|
||||
|
||||
Reference in New Issue
Block a user