add zsh module
This commit is contained in:
parent
72eae5ac3b
commit
4af229a564
7 changed files with 32 additions and 6 deletions
7
modules/system/programs/default.nix
Normal file
7
modules/system/programs/default.nix
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
{ ... }: {
|
||||
flake.nixosModules.programs = {
|
||||
programs.niri.enable = true;
|
||||
programs.steam.enable = true;
|
||||
programs.direnv.enable = true;
|
||||
};
|
||||
}
|
||||
19
modules/system/programs/zsh.nix
Normal file
19
modules/system/programs/zsh.nix
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
{ ... }: {
|
||||
flake.nixosModules.zsh = {
|
||||
programs.zsh = {
|
||||
enable = true;
|
||||
enableCompletion = true;
|
||||
autosuggestions.enable = true;
|
||||
syntaxHighlighting.enable = true;
|
||||
ohMyZsh = {
|
||||
enable = true;
|
||||
theme = "gentoo";
|
||||
};
|
||||
shellInit = ''
|
||||
export SSH_AUTH_SOCK="$XDG_RUNTIME_DIR/rbw/ssh-agent-socket"
|
||||
eval "$(devenv hook zsh)"
|
||||
'';
|
||||
};
|
||||
system.userActivationScripts.zshrc = "touch .zshrc";
|
||||
};
|
||||
}
|
||||
Loading…
Reference in a new issue