Regenerated

This commit is contained in:
2026-03-26 19:34:44 +00:00
parent e3b9fcf360
commit ef56ccc664
2 changed files with 78 additions and 58 deletions
+39 -29
View File
@@ -1111,42 +1111,52 @@ 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 tangle :mkdirp yes :eval never-html #+BEGIN_SRC nix :tangle generated/modules/traveldroid/apps/zsh.nix :noweb tangle :mkdirp yes :eval never-html
{ config, pkgs, lib, ... }: { config, pkgs, lib, flakeRoot, ... }:
let let
generatedZsh = "${config.home.file.".config/zsh/.zshrc".source}"; username = config.users.users.defaultUser or "henrov";
generatedZsh = "${flakeRoot}/generated/.config/zsh/.zshrc";
in in
{ {
programs.zsh = { #################################
enable = true; # Home Manager Zsh configuration
enableCompletion = true; #################################
ohMyZsh = { _module.args.hmUsers = {
enable = true; ${username} = {
theme = ""; programs.zsh = {
plugins = [ enable = true;
"git" enableCompletion = true;
"sudo" # autocd = true;
"extract"
"colored-man-pages" ohMyZsh = {
"command-not-found" enable = true;
"history" theme = "";
"docker" plugins = [
"kubectl" "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;
} }
#+END_SRC #+END_SRC
@@ -1,37 +1,47 @@
{ config, pkgs, lib, ... }: { config, pkgs, lib, flakeRoot, ... }:
let let
generatedZsh = "${config.home.file.".config/zsh/.zshrc".source}"; username = config.users.users.defaultUser or "henrov";
generatedZsh = "${flakeRoot}/generated/.config/zsh/.zshrc";
in in
{ {
programs.zsh = { #################################
enable = true; # Home Manager Zsh configuration
enableCompletion = true; #################################
ohMyZsh = { _module.args.hmUsers = {
enable = true; ${username} = {
theme = ""; programs.zsh = {
plugins = [ enable = true;
"git" enableCompletion = true;
"sudo" # autocd = true;
"extract"
"colored-man-pages" ohMyZsh = {
"command-not-found" enable = true;
"history" theme = "";
"docker" plugins = [
"kubectl" "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;
} }