working on zsh
This commit is contained in:
@@ -15,40 +15,33 @@
|
|||||||
|
|
||||||
# --- Home Manager Configuration ---
|
# --- Home Manager Configuration ---
|
||||||
home-manager.users.henrov = {
|
home-manager.users.henrov = {
|
||||||
# Enable the zshPlugins overlay
|
|
||||||
nixpkgs.config = {
|
|
||||||
overlays = [
|
|
||||||
(import (fetchTarball "https://github.com/nix-community/home-manager/archive/master.tar.gz") { })
|
|
||||||
];
|
|
||||||
};
|
|
||||||
|
|
||||||
programs.zsh = {
|
programs.zsh = {
|
||||||
enable = true;
|
enable = true;
|
||||||
enableCompletion = true;
|
enableCompletion = true;
|
||||||
|
|
||||||
# Enable oh-my-zsh
|
# Enable oh-my-zsh and use its plugins
|
||||||
oh-my-zsh = {
|
oh-my-zsh = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
plugins = [
|
||||||
|
"git"
|
||||||
|
"docker"
|
||||||
|
"direnv"
|
||||||
|
"zsh-autosuggestions"
|
||||||
|
"zsh-syntax-highlighting"
|
||||||
|
"zsh-completions"
|
||||||
|
"zsh-history-substring-search"
|
||||||
|
];
|
||||||
theme = "agnoster"; # Fallback, overridden below
|
theme = "agnoster"; # Fallback, overridden below
|
||||||
};
|
};
|
||||||
|
|
||||||
# Declare all plugins via Nixpkgs for reproducibility
|
# Source Nixpkgs-provided plugins explicitly
|
||||||
plugins = with pkgs; [
|
|
||||||
zsh-autosuggestions
|
|
||||||
zsh-syntax-highlighting
|
|
||||||
zsh-completions
|
|
||||||
zsh-history-substring-search
|
|
||||||
];
|
|
||||||
|
|
||||||
# Source plugins and set custom theme
|
|
||||||
initExtra = ''
|
initExtra = ''
|
||||||
# Source plugins
|
# Source plugins installed by Nix
|
||||||
source ${pkgs.zsh-autosuggestions}/share/zsh-autosuggestions/zsh-autosuggestions.zsh
|
source ${pkgs.zsh-autosuggestions}/share/zsh-autosuggestions/zsh-autosuggestions.zsh
|
||||||
source ${pkgs.zsh-syntax-highlighting}/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
|
source ${pkgs.zsh-syntax-highlighting}/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
|
||||||
source ${pkgs.zsh-history-substring-search}/share/zsh-history-substring-search/zsh-history-substring-search.zsh
|
source ${pkgs.zsh-history-substring-search}/share/zsh-history-substring-search/zsh-history-substring-search.zsh
|
||||||
|
|
||||||
# Catppuccin Mocha theme for oh-my-zsh
|
# Catppuccin Mocha theme for oh-my-zsh
|
||||||
# Colors
|
|
||||||
local mocha_base="#1E1E2E"
|
local mocha_base="#1E1E2E"
|
||||||
local mocha_surface0="#313244"
|
local mocha_surface0="#313244"
|
||||||
local mocha_text="#CDD6F4"
|
local mocha_text="#CDD6F4"
|
||||||
@@ -93,7 +86,7 @@
|
|||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
# Home Manager packages (optional, if not already in systemPackages)
|
# Home Manager packages (optional)
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
direnv
|
direnv
|
||||||
git-extras
|
git-extras
|
||||||
|
|||||||
Reference in New Issue
Block a user