Regenerated
This commit is contained in:
+302
-328
File diff suppressed because it is too large
Load Diff
+14
-40
@@ -1142,58 +1142,32 @@ 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
|
||||
{ lib, config, pkgs, flakeRoot, ... }:
|
||||
{ lib, pkgs, flakeRoot, ... }:
|
||||
|
||||
let
|
||||
username = config.defaultUser or "henrov";
|
||||
# Path to generated zsh config (optional)
|
||||
generatedZsh = "${flakeRoot}/generated/.config/zsh/.zshrc";
|
||||
in
|
||||
{
|
||||
#################################
|
||||
# Install Zsh system-wide
|
||||
# Install Zsh and Oh My Zsh system-wide
|
||||
#################################
|
||||
environment.systemPackages = [
|
||||
pkgs.zsh
|
||||
environment.systemPackages = with pkgs; [
|
||||
zsh
|
||||
oh-my-zsh
|
||||
];
|
||||
|
||||
#################################
|
||||
# Home Manager user configuration
|
||||
# Optional: Deploy a custom .zshrc for all users
|
||||
#################################
|
||||
home-manager.users = {
|
||||
${username} = {
|
||||
programs.zsh = {
|
||||
enable = true;
|
||||
enableCompletion = true;
|
||||
autocd = true;
|
||||
# This will create /etc/zsh/.zshrc for all users
|
||||
environment.etc."zshrc".source = generatedZsh;
|
||||
|
||||
oh-my-zsh = {
|
||||
enable = true;
|
||||
theme = "";
|
||||
plugins = [
|
||||
"git"
|
||||
"sudo"
|
||||
"extract"
|
||||
"colored-man-pages"
|
||||
"command-not-found"
|
||||
"history"
|
||||
"docker"
|
||||
"kubectl"
|
||||
];
|
||||
};
|
||||
|
||||
enableAutosuggestions = true;
|
||||
enableSyntaxHighlighting = true;
|
||||
};
|
||||
|
||||
# Use ~/.config/zsh as ZDOTDIR
|
||||
home.sessionVariables = {
|
||||
ZDOTDIR = "${config.homeDirectory}/.config/zsh";
|
||||
};
|
||||
|
||||
# Deploy the generated .zshrc
|
||||
home.file.".config/zsh/.zshrc".source = generatedZsh;
|
||||
};
|
||||
};
|
||||
#################################
|
||||
# Optional: Set default shell for all users
|
||||
#################################
|
||||
# You can enable this if you want
|
||||
# users.extraUsers.<username>.shell = pkgs.zsh;
|
||||
}
|
||||
#+END_SRC
|
||||
|
||||
|
||||
@@ -1,53 +1,27 @@
|
||||
{ lib, config, pkgs, flakeRoot, ... }:
|
||||
{ lib, pkgs, flakeRoot, ... }:
|
||||
|
||||
let
|
||||
username = config.defaultUser or "henrov";
|
||||
# Path to generated zsh config (optional)
|
||||
generatedZsh = "${flakeRoot}/generated/.config/zsh/.zshrc";
|
||||
in
|
||||
{
|
||||
#################################
|
||||
# Install Zsh system-wide
|
||||
# Install Zsh and Oh My Zsh system-wide
|
||||
#################################
|
||||
environment.systemPackages = [
|
||||
pkgs.zsh
|
||||
environment.systemPackages = with pkgs; [
|
||||
zsh
|
||||
oh-my-zsh
|
||||
];
|
||||
|
||||
#################################
|
||||
# Home Manager user configuration
|
||||
# Optional: Deploy a custom .zshrc for all users
|
||||
#################################
|
||||
home-manager.users = {
|
||||
${username} = {
|
||||
programs.zsh = {
|
||||
enable = true;
|
||||
enableCompletion = true;
|
||||
autocd = true;
|
||||
# This will create /etc/zsh/.zshrc for all users
|
||||
environment.etc."zshrc".source = generatedZsh;
|
||||
|
||||
oh-my-zsh = {
|
||||
enable = true;
|
||||
theme = "";
|
||||
plugins = [
|
||||
"git"
|
||||
"sudo"
|
||||
"extract"
|
||||
"colored-man-pages"
|
||||
"command-not-found"
|
||||
"history"
|
||||
"docker"
|
||||
"kubectl"
|
||||
];
|
||||
};
|
||||
|
||||
enableAutosuggestions = true;
|
||||
enableSyntaxHighlighting = true;
|
||||
};
|
||||
|
||||
# Use ~/.config/zsh as ZDOTDIR
|
||||
home.sessionVariables = {
|
||||
ZDOTDIR = "${config.homeDirectory}/.config/zsh";
|
||||
};
|
||||
|
||||
# Deploy the generated .zshrc
|
||||
home.file.".config/zsh/.zshrc".source = generatedZsh;
|
||||
};
|
||||
};
|
||||
#################################
|
||||
# Optional: Set default shell for all users
|
||||
#################################
|
||||
# You can enable this if you want
|
||||
# users.extraUsers.<username>.shell = pkgs.zsh;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user