Regenerated
This commit is contained in:
@@ -1,37 +1,47 @@
|
||||
{ config, pkgs, lib, ... }:
|
||||
{ config, pkgs, lib, flakeRoot, ... }:
|
||||
|
||||
let
|
||||
generatedZsh = "${config.home.file.".config/zsh/.zshrc".source}";
|
||||
username = config.users.users.defaultUser or "henrov";
|
||||
generatedZsh = "${flakeRoot}/generated/.config/zsh/.zshrc";
|
||||
in
|
||||
{
|
||||
programs.zsh = {
|
||||
enable = true;
|
||||
enableCompletion = true;
|
||||
#################################
|
||||
# Home Manager Zsh configuration
|
||||
#################################
|
||||
|
||||
ohMyZsh = {
|
||||
enable = true;
|
||||
theme = "";
|
||||
plugins = [
|
||||
"git"
|
||||
"sudo"
|
||||
"extract"
|
||||
"colored-man-pages"
|
||||
"command-not-found"
|
||||
"history"
|
||||
"docker"
|
||||
"kubectl"
|
||||
];
|
||||
_module.args.hmUsers = {
|
||||
${username} = {
|
||||
programs.zsh = {
|
||||
enable = true;
|
||||
enableCompletion = true;
|
||||
# autocd = true;
|
||||
|
||||
ohMyZsh = {
|
||||
enable = true;
|
||||
theme = "";
|
||||
plugins = [
|
||||
"git"
|
||||
"sudo"
|
||||
"extract"
|
||||
"colored-man-pages"
|
||||
"command-not-found"
|
||||
"history"
|
||||
"docker"
|
||||
"kubectl"
|
||||
];
|
||||
};
|
||||
|
||||
autosuggestions.enable = true;
|
||||
syntaxHighlighting.enable = true;
|
||||
};
|
||||
|
||||
# Use ~/.config/zsh as ZDOTDIR
|
||||
home.sessionVariables = {
|
||||
ZDOTDIR = "${config.home.homeDirectory}/.config/zsh";
|
||||
};
|
||||
|
||||
# Deploy the generated .zshrc
|
||||
home.file.".config/zsh/.zshrc".source = generatedZsh;
|
||||
};
|
||||
|
||||
autosuggestions.enable = true;
|
||||
syntaxHighlighting.enable = true;
|
||||
};
|
||||
|
||||
# Set ZDOTDIR globally in the user environment
|
||||
home.sessionVariables = {
|
||||
ZDOTDIR = "${config.home.homeDirectory}/.config/zsh";
|
||||
};
|
||||
|
||||
# Place the generated .zshrc file there
|
||||
home.file.".config/zsh/.zshrc".source = generatedZsh;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user