mirror of
https://github.com/LnL7/nix-darwin.git
synced 2024-12-15 17:51:01 +00:00
lnl: update example with promptInit
This commit is contained in:
parent
23d3784589
commit
5c1fc8a85c
1 changed files with 28 additions and 23 deletions
|
@ -1,25 +1,5 @@
|
|||
{ config, lib, pkgs, ... }:
|
||||
{
|
||||
environment.systemPackages =
|
||||
[ pkgs.lnl.tmux
|
||||
pkgs.lnl.vim
|
||||
|
||||
pkgs.curl
|
||||
pkgs.fzf
|
||||
pkgs.gettext
|
||||
pkgs.git
|
||||
pkgs.jq
|
||||
pkgs.silver-searcher
|
||||
|
||||
pkgs.nix-repl
|
||||
pkgs.nox
|
||||
];
|
||||
|
||||
services.nix-daemon.enable = true;
|
||||
services.nix-daemon.tempDir = "/nix/tmp";
|
||||
|
||||
services.activate-system.enable = true;
|
||||
|
||||
system.defaults.NSGlobalDomain.AppleKeyboardUIMode = 3;
|
||||
system.defaults.NSGlobalDomain.ApplePressAndHoldEnabled = false;
|
||||
system.defaults.NSGlobalDomain.InitialKeyRepeat = 10;
|
||||
|
@ -41,6 +21,26 @@
|
|||
|
||||
system.defaults.trackpad.Clicking = true;
|
||||
|
||||
environment.systemPackages =
|
||||
[ pkgs.lnl.tmux
|
||||
pkgs.lnl.vim
|
||||
|
||||
pkgs.curl
|
||||
pkgs.fzf
|
||||
pkgs.gettext
|
||||
pkgs.git
|
||||
pkgs.jq
|
||||
pkgs.silver-searcher
|
||||
|
||||
pkgs.nix-repl
|
||||
pkgs.nox
|
||||
];
|
||||
|
||||
services.nix-daemon.enable = true;
|
||||
services.nix-daemon.tempDir = "/nix/tmp";
|
||||
|
||||
services.activate-system.enable = true;
|
||||
|
||||
programs.tmux.enable = true;
|
||||
programs.tmux.loginShell = "${config.programs.zsh.shell} -l";
|
||||
programs.tmux.enableSensible = true;
|
||||
|
@ -56,6 +56,14 @@
|
|||
'';
|
||||
|
||||
programs.zsh.enable = true;
|
||||
programs.zsh.enableBashCompletion = true;
|
||||
|
||||
programs.zsh.promptInit = ''
|
||||
autoload -U promptinit && promptinit
|
||||
|
||||
PROMPT='%B%(?..%? )%b⇒ '
|
||||
RPROMPT='%F{green}%~%f'
|
||||
'';
|
||||
|
||||
programs.zsh.shellInit = ''
|
||||
cfg=$HOME/.nixpkgs/darwin-config.nix
|
||||
|
@ -64,9 +72,6 @@
|
|||
'';
|
||||
|
||||
programs.zsh.loginShellInit = ''
|
||||
autoload -U promptinit && promptinit
|
||||
PROMPT='%B%(?..%? )%b⇒ '
|
||||
RPROMPT='%F{green}%~%f'
|
||||
|
||||
bindkey -e
|
||||
setopt autocd
|
||||
|
|
Loading…
Reference in a new issue