Move zsh to module

This commit is contained in:
Thomas Avé 2024-05-31 15:20:29 +02:00
parent cf068c7eb8
commit 321bd28f35
2 changed files with 36 additions and 15 deletions

View File

@ -1,13 +1,26 @@
{ config, pkgs, ... }:
{
imports = [
(import ./modules/zsh.nix {inherit config pkgs;})
];
home.stateVersion = "24.11";
targets.genericLinux.enable = true;
nixpkgs.config.allowUnfree = true;
home.packages = with pkgs; [
htop
];
programs.bash.enable = true;
programs.neovim.enable = true;
programs.home-manager.enable = true;
programs.neovim = {
enable = true;
viAlias = true;
vimAlias = true;
defaultEditor = true;
};
programs.git = {
enable = true;
@ -15,19 +28,8 @@
userEmail = "email@thomasave.be";
};
home.packages = with pkgs; [
htop
];
programs.zsh = {
enable = true;
enableCompletion = true;
syntaxHighlighting.enable = true;
shellAliases = {
ll = "ls -lhat";
};
history.size = 10000;
history.path = "${config.xdg.dataHome}/zsh/history";
home.sessionVariables = {
EDITOR = "nvim";
LD_LIBRARY_PATH = "${pkgs.stdenv.cc.cc.lib}/lib";
};
}

19
NixOS/modules/zsh.nix Normal file
View File

@ -0,0 +1,19 @@
{ config, pkgs, ... }:
{
home.packages = with pkgs; [
htop
];
programs.zsh = {
enable = true;
enableCompletion = true;
syntaxHighlighting.enable = true;
shellAliases = {
ll = "ls -lhat";
};
history.size = 10000;
history.path = "${config.xdg.dataHome}/zsh/history";
};
}