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=
|
** =generated/modules/traveldroid/apps/zsh.nix=
|
||||||
This sets up the zsh in the terminal
|
This sets up the zsh in the terminal
|
||||||
#+BEGIN_SRC nix :tangle generated/modules/traveldroid/apps/zsh.nix :noweb yes :mkdirp yes :eval never
|
#+BEGIN_SRC nix :tangle generated/modules/traveldroid/apps/zsh.nix :noweb yes :mkdirp yes :eval never
|
||||||
{ lib, config, pkgs, flakeRoot, ... }:
|
{ lib, pkgs, flakeRoot, ... }:
|
||||||
|
|
||||||
let
|
let
|
||||||
username = config.defaultUser or "henrov";
|
# Path to generated zsh config (optional)
|
||||||
generatedZsh = "${flakeRoot}/generated/.config/zsh/.zshrc";
|
generatedZsh = "${flakeRoot}/generated/.config/zsh/.zshrc";
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
#################################
|
#################################
|
||||||
# Install Zsh system-wide
|
# Install Zsh and Oh My Zsh system-wide
|
||||||
#################################
|
#################################
|
||||||
environment.systemPackages = [
|
environment.systemPackages = with pkgs; [
|
||||||
pkgs.zsh
|
zsh
|
||||||
|
oh-my-zsh
|
||||||
];
|
];
|
||||||
|
|
||||||
#################################
|
#################################
|
||||||
# Home Manager user configuration
|
# Optional: Deploy a custom .zshrc for all users
|
||||||
#################################
|
#################################
|
||||||
home-manager.users = {
|
# This will create /etc/zsh/.zshrc for all users
|
||||||
${username} = {
|
environment.etc."zshrc".source = generatedZsh;
|
||||||
programs.zsh = {
|
|
||||||
enable = true;
|
|
||||||
enableCompletion = true;
|
|
||||||
autocd = true;
|
|
||||||
|
|
||||||
oh-my-zsh = {
|
#################################
|
||||||
enable = true;
|
# Optional: Set default shell for all users
|
||||||
theme = "";
|
#################################
|
||||||
plugins = [
|
# You can enable this if you want
|
||||||
"git"
|
# users.extraUsers.<username>.shell = pkgs.zsh;
|
||||||
"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;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
|
||||||
|
|||||||
@@ -1,53 +1,27 @@
|
|||||||
{ lib, config, pkgs, flakeRoot, ... }:
|
{ lib, pkgs, flakeRoot, ... }:
|
||||||
|
|
||||||
let
|
let
|
||||||
username = config.defaultUser or "henrov";
|
# Path to generated zsh config (optional)
|
||||||
generatedZsh = "${flakeRoot}/generated/.config/zsh/.zshrc";
|
generatedZsh = "${flakeRoot}/generated/.config/zsh/.zshrc";
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
#################################
|
#################################
|
||||||
# Install Zsh system-wide
|
# Install Zsh and Oh My Zsh system-wide
|
||||||
#################################
|
#################################
|
||||||
environment.systemPackages = [
|
environment.systemPackages = with pkgs; [
|
||||||
pkgs.zsh
|
zsh
|
||||||
|
oh-my-zsh
|
||||||
];
|
];
|
||||||
|
|
||||||
#################################
|
#################################
|
||||||
# Home Manager user configuration
|
# Optional: Deploy a custom .zshrc for all users
|
||||||
#################################
|
#################################
|
||||||
home-manager.users = {
|
# This will create /etc/zsh/.zshrc for all users
|
||||||
${username} = {
|
environment.etc."zshrc".source = generatedZsh;
|
||||||
programs.zsh = {
|
|
||||||
enable = true;
|
|
||||||
enableCompletion = true;
|
|
||||||
autocd = true;
|
|
||||||
|
|
||||||
oh-my-zsh = {
|
#################################
|
||||||
enable = true;
|
# Optional: Set default shell for all users
|
||||||
theme = "";
|
#################################
|
||||||
plugins = [
|
# You can enable this if you want
|
||||||
"git"
|
# users.extraUsers.<username>.shell = pkgs.zsh;
|
||||||
"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;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user