Working on reshuffling
This commit is contained in:
+51
-52
@@ -1311,67 +1311,66 @@ in
|
|||||||
** =generated/modules/terminals/zsh.nix=
|
** =generated/modules/terminals/zsh.nix=
|
||||||
This sets up the zsh terminal
|
This sets up the zsh terminal
|
||||||
#+BEGIN_SRC nix :tangle generated/modules/terminals/zsh.nix :noweb tangle :mkdirp yes :eval never-html
|
#+BEGIN_SRC nix :tangle generated/modules/terminals/zsh.nix :noweb tangle :mkdirp yes :eval never-html
|
||||||
{ config, pkgs, lib, ... }:
|
{ lib, pkgs, ... }:
|
||||||
|
|
||||||
let
|
let
|
||||||
username = "henrov";
|
username = "henrov";
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
# Activeer Home Manager (als NixOS module)
|
# Home Manager configuratie
|
||||||
programs.home-manager.enable = true;
|
homeConfigurations = {
|
||||||
|
${username} = lib.recursiveUpdate (import <home-manager/nixos> {
|
||||||
|
inherit pkgs lib;
|
||||||
|
# eventueel: extraModules = [ ... ];
|
||||||
|
}) {
|
||||||
|
home.username = username;
|
||||||
|
home.homeDirectory = "/home/${username}";
|
||||||
|
|
||||||
home-manager.users.${username} = {
|
programs.zsh = {
|
||||||
programs.zsh = {
|
|
||||||
enable = true;
|
|
||||||
enableCompletion = true;
|
|
||||||
|
|
||||||
ohMyZsh = {
|
|
||||||
enable = true;
|
enable = true;
|
||||||
theme = "catppuccin-mocha";
|
enableCompletion = true;
|
||||||
|
|
||||||
# Plugins in de juiste volgorde
|
ohMyZsh = {
|
||||||
plugins = [
|
enable = true;
|
||||||
"git"
|
theme = "catppuccin-mocha";
|
||||||
"docker"
|
plugins = [
|
||||||
"direnv"
|
"git"
|
||||||
"zsh-autosuggestions"
|
"docker"
|
||||||
"zsh-completions"
|
"direnv"
|
||||||
"zsh-history-substring-search"
|
"zsh-autosuggestions"
|
||||||
# zsh-syntax-highlighting wordt apart in initExtra gesourced
|
"zsh-completions"
|
||||||
];
|
"zsh-history-substring-search"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
|
initExtra = ''
|
||||||
|
# Catppuccin Mocha kleuren
|
||||||
|
local mocha_base="#1E1E2E"
|
||||||
|
local mocha_surface0="#313244"
|
||||||
|
local mocha_text="#CDD6F4"
|
||||||
|
local mocha_lavender="#B4BEFE"
|
||||||
|
local mocha_blue="#89B4FA"
|
||||||
|
local mocha_sapphire="#74C7EC"
|
||||||
|
local mocha_teal="#94E2D5"
|
||||||
|
local mocha_green="#A6E3A1"
|
||||||
|
local mocha_yellow="#F9E2AF"
|
||||||
|
local mocha_peach="#FAB387"
|
||||||
|
local mocha_maroon="#EBA0AC"
|
||||||
|
local mocha_red="#F38BA8"
|
||||||
|
local mocha_mauve="#CBA6F7"
|
||||||
|
local mocha_pink="#F5C2E7"
|
||||||
|
local mocha_flamingo="#F2CDCD"
|
||||||
|
local mocha_rosewater="#F5E0DC"
|
||||||
|
|
||||||
|
PROMPT='%{$fg[$mocha_blue]%}%n%{$reset_color%}@%{$fg[$mocha_peach]%}%m%{$reset_color%} %{$fg[$mocha_lavender]%}%~%{$reset_color%} %{$fg[$mocha_red]%}$%{$reset_color%} '
|
||||||
|
RPROMPT='%{$fg[$mocha_green]%}%T%{$reset_color%}'
|
||||||
|
|
||||||
|
# Zsh-syntax-highlighting sourcen
|
||||||
|
if [ -f ${pkgs.zsh-syntax-highlighting}/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh ]; then
|
||||||
|
source ${pkgs.zsh-syntax-highlighting}/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
|
||||||
|
fi
|
||||||
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
# Extra init script om syntax-highlighting correct te laden
|
|
||||||
initExtra = ''
|
|
||||||
# Catppuccin Mocha kleuren
|
|
||||||
local mocha_base="#1E1E2E"
|
|
||||||
local mocha_surface0="#313244"
|
|
||||||
local mocha_text="#CDD6F4"
|
|
||||||
local mocha_lavender="#B4BEFE"
|
|
||||||
local mocha_blue="#89B4FA"
|
|
||||||
local mocha_sapphire="#74C7EC"
|
|
||||||
local mocha_teal="#94E2D5"
|
|
||||||
local mocha_green="#A6E3A1"
|
|
||||||
local mocha_yellow="#F9E2AF"
|
|
||||||
local mocha_peach="#FAB387"
|
|
||||||
local mocha_maroon="#EBA0AC"
|
|
||||||
local mocha_red="#F38BA8"
|
|
||||||
local mocha_mauve="#CBA6F7"
|
|
||||||
local mocha_pink="#F5C2E7"
|
|
||||||
local mocha_flamingo="#F2CDCD"
|
|
||||||
local mocha_rosewater="#F5E0DC"
|
|
||||||
|
|
||||||
# Prompt configuratie
|
|
||||||
PROMPT='%{$fg[$mocha_blue]%}%n%{$reset_color%}@%{$fg[$mocha_peach]%}%m%{$reset_color%} %{$fg[$mocha_lavender]%}%~%{$reset_color%} %{$fg[$mocha_red]%}$%{$reset_color%} '
|
|
||||||
RPROMPT='%{$fg[$mocha_green]%}%T%{$reset_color%}'
|
|
||||||
|
|
||||||
# Zsh-syntax-highlighting correct sourcen
|
|
||||||
if [ -f ${pkgs.zsh-syntax-highlighting}/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh ]; then
|
|
||||||
source ${pkgs.zsh-syntax-highlighting}/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Zsh-autosuggestions en andere plugins worden automatisch geladen via oh-my-zsh
|
|
||||||
'';
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,64 +1,63 @@
|
|||||||
{ config, pkgs, lib, ... }:
|
{ lib, pkgs, ... }:
|
||||||
|
|
||||||
let
|
let
|
||||||
username = "henrov";
|
username = "henrov";
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
# Activeer Home Manager (als NixOS module)
|
# Home Manager configuratie
|
||||||
programs.home-manager.enable = true;
|
homeConfigurations = {
|
||||||
|
${username} = lib.recursiveUpdate (import <home-manager/nixos> {
|
||||||
|
inherit pkgs lib;
|
||||||
|
# eventueel: extraModules = [ ... ];
|
||||||
|
}) {
|
||||||
|
home.username = username;
|
||||||
|
home.homeDirectory = "/home/${username}";
|
||||||
|
|
||||||
home-manager.users.${username} = {
|
programs.zsh = {
|
||||||
programs.zsh = {
|
|
||||||
enable = true;
|
|
||||||
enableCompletion = true;
|
|
||||||
|
|
||||||
ohMyZsh = {
|
|
||||||
enable = true;
|
enable = true;
|
||||||
theme = "catppuccin-mocha";
|
enableCompletion = true;
|
||||||
|
|
||||||
# Plugins in de juiste volgorde
|
ohMyZsh = {
|
||||||
plugins = [
|
enable = true;
|
||||||
"git"
|
theme = "catppuccin-mocha";
|
||||||
"docker"
|
plugins = [
|
||||||
"direnv"
|
"git"
|
||||||
"zsh-autosuggestions"
|
"docker"
|
||||||
"zsh-completions"
|
"direnv"
|
||||||
"zsh-history-substring-search"
|
"zsh-autosuggestions"
|
||||||
# zsh-syntax-highlighting wordt apart in initExtra gesourced
|
"zsh-completions"
|
||||||
];
|
"zsh-history-substring-search"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
|
initExtra = ''
|
||||||
|
# Catppuccin Mocha kleuren
|
||||||
|
local mocha_base="#1E1E2E"
|
||||||
|
local mocha_surface0="#313244"
|
||||||
|
local mocha_text="#CDD6F4"
|
||||||
|
local mocha_lavender="#B4BEFE"
|
||||||
|
local mocha_blue="#89B4FA"
|
||||||
|
local mocha_sapphire="#74C7EC"
|
||||||
|
local mocha_teal="#94E2D5"
|
||||||
|
local mocha_green="#A6E3A1"
|
||||||
|
local mocha_yellow="#F9E2AF"
|
||||||
|
local mocha_peach="#FAB387"
|
||||||
|
local mocha_maroon="#EBA0AC"
|
||||||
|
local mocha_red="#F38BA8"
|
||||||
|
local mocha_mauve="#CBA6F7"
|
||||||
|
local mocha_pink="#F5C2E7"
|
||||||
|
local mocha_flamingo="#F2CDCD"
|
||||||
|
local mocha_rosewater="#F5E0DC"
|
||||||
|
|
||||||
|
PROMPT='%{$fg[$mocha_blue]%}%n%{$reset_color%}@%{$fg[$mocha_peach]%}%m%{$reset_color%} %{$fg[$mocha_lavender]%}%~%{$reset_color%} %{$fg[$mocha_red]%}$%{$reset_color%} '
|
||||||
|
RPROMPT='%{$fg[$mocha_green]%}%T%{$reset_color%}'
|
||||||
|
|
||||||
|
# Zsh-syntax-highlighting sourcen
|
||||||
|
if [ -f ${pkgs.zsh-syntax-highlighting}/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh ]; then
|
||||||
|
source ${pkgs.zsh-syntax-highlighting}/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
|
||||||
|
fi
|
||||||
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
# Extra init script om syntax-highlighting correct te laden
|
|
||||||
initExtra = ''
|
|
||||||
# Catppuccin Mocha kleuren
|
|
||||||
local mocha_base="#1E1E2E"
|
|
||||||
local mocha_surface0="#313244"
|
|
||||||
local mocha_text="#CDD6F4"
|
|
||||||
local mocha_lavender="#B4BEFE"
|
|
||||||
local mocha_blue="#89B4FA"
|
|
||||||
local mocha_sapphire="#74C7EC"
|
|
||||||
local mocha_teal="#94E2D5"
|
|
||||||
local mocha_green="#A6E3A1"
|
|
||||||
local mocha_yellow="#F9E2AF"
|
|
||||||
local mocha_peach="#FAB387"
|
|
||||||
local mocha_maroon="#EBA0AC"
|
|
||||||
local mocha_red="#F38BA8"
|
|
||||||
local mocha_mauve="#CBA6F7"
|
|
||||||
local mocha_pink="#F5C2E7"
|
|
||||||
local mocha_flamingo="#F2CDCD"
|
|
||||||
local mocha_rosewater="#F5E0DC"
|
|
||||||
|
|
||||||
# Prompt configuratie
|
|
||||||
PROMPT='%{$fg[$mocha_blue]%}%n%{$reset_color%}@%{$fg[$mocha_peach]%}%m%{$reset_color%} %{$fg[$mocha_lavender]%}%~%{$reset_color%} %{$fg[$mocha_red]%}$%{$reset_color%} '
|
|
||||||
RPROMPT='%{$fg[$mocha_green]%}%T%{$reset_color%}'
|
|
||||||
|
|
||||||
# Zsh-syntax-highlighting correct sourcen
|
|
||||||
if [ -f ${pkgs.zsh-syntax-highlighting}/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh ]; then
|
|
||||||
source ${pkgs.zsh-syntax-highlighting}/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Zsh-autosuggestions en andere plugins worden automatisch geladen via oh-my-zsh
|
|
||||||
'';
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user