laptop: systemwide zsh config; minor cleanup

This commit is contained in:
steveej 2018-01-26 12:45:56 +01:00
parent ce024b8418
commit 8330cfac00

View file

@ -1,7 +1,9 @@
{ config, lib, pkgs, ... }: { config, lib, pkgs, ... }:
{ rec {
nix.binaryCachePublicKeys = [ "hydra.nixos.org-1:CNHJZBh9K4tP3EKF6FkkgeVYsS3ohTl+oS0Qa8bezVs=" ]; nix.binaryCachePublicKeys = [
"hydra.nixos.org-1:CNHJZBh9K4tP3EKF6FkkgeVYsS3ohTl+oS0Qa8bezVs="
];
nix.binaryCaches = [ nix.binaryCaches = [
"https://cache.nixos.org" "https://cache.nixos.org"
"https://hydra.nixos.org" "https://hydra.nixos.org"
@ -39,7 +41,22 @@
enable = true; enable = true;
enableAutosuggestions = true; enableAutosuggestions = true;
enableCompletion = true; enableCompletion = true;
syntax-highlighting.enable = true; syntaxHighlighting.enable = true;
syntaxHighlighting.patterns = {};
ohMyZsh = {
enable = true;
theme = "tjkirch";
};
promptInit = ''
autoload -U promptinit
promptinit
ZSH_THEME_GIT_PROMPT_PREFIX='@ '
PROMPT='%F{%(!.red.green)}%n%f@%m %(?.%F{green}%f.%F{red} ($?%))%f %F{blue}%~%f %F{magenta}$(git_prompt_info)%f
%_%F{%(!.red.green)}$(prompt_char)%f '
RPROMPT=""
'';
interactiveShellInit = ''
'';
}; };
programs.bash = { programs.bash = {
@ -79,7 +96,6 @@
# Package configuration # Package configuration
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
xorg.xmodmap
]; ];
environment.sessionVariables = { environment.sessionVariables = {
@ -113,7 +129,7 @@
services.openssh.enable = true; services.openssh.enable = true;
services.openssh.permitRootLogin = "yes"; services.openssh.permitRootLogin = "yes";
services.teamviewer.enable = true; services.teamviewer.enable = false;
services.printing = { services.printing = {
enable = true; enable = true;