Moved modules into a new Modules subdirectory. Started config of install.sh script. Moved home manager config out of flake.
This commit is contained in:
29
modules/zsh.nix
Normal file
29
modules/zsh.nix
Normal file
@ -0,0 +1,29 @@
|
||||
{ config, pkgs, ... }: {
|
||||
programs.zsh = {
|
||||
enable = true;
|
||||
|
||||
ohMyZsh = {
|
||||
enable = true;
|
||||
plugins = [ "git" ];
|
||||
};
|
||||
|
||||
shellInit = ''
|
||||
source /etc/nixos/other/aliases
|
||||
'';
|
||||
|
||||
#To reset powerlevel10k, write 'p10k configure' in shell!
|
||||
promptInit = ''
|
||||
source ${pkgs.zsh-powerlevel10k}/share/zsh-powerlevel10k/powerlevel10k.zsh-theme
|
||||
'';
|
||||
};
|
||||
|
||||
users.users.cookiez.shell = pkgs.zsh;
|
||||
environment.systemPackages = [
|
||||
pkgs.oh-my-zsh
|
||||
pkgs.zsh
|
||||
pkgs.zsh-completions
|
||||
pkgs.zsh-powerlevel10k
|
||||
pkgs.zsh-syntax-highlighting
|
||||
pkgs.zsh-autocomplete
|
||||
];
|
||||
}
|
||||
Reference in New Issue
Block a user