summaryrefslogtreecommitdiff
path: root/modules/examples
diff options
context:
space:
mode:
authorDaiderd Jordan <daiderd@gmail.com>2020-02-24 23:05:48 +0100
committerDaiderd Jordan <daiderd@gmail.com>2020-02-29 23:49:53 +0100
commit6a255bd47cb003571a4b741639391a0e31cce1aa (patch)
tree9cab4ec43e740f507bdb80a3ec8b8662436d0651 /modules/examples
parent5fba29c1c8ad123ae7fce9bae5a8e50b502b4e16 (diff)
lnl: update
Diffstat (limited to 'modules/examples')
-rw-r--r--modules/examples/lnl.nix33
1 files changed, 20 insertions, 13 deletions
diff --git a/modules/examples/lnl.nix b/modules/examples/lnl.nix
index cda7e19..5179807 100644
--- a/modules/examples/lnl.nix
+++ b/modules/examples/lnl.nix
@@ -14,11 +14,12 @@
system.defaults.NSGlobalDomain.NSAutomaticSpellingCorrectionEnabled = false;
system.defaults.NSGlobalDomain.NSNavPanelExpandedStateForSaveMode = true;
system.defaults.NSGlobalDomain.NSNavPanelExpandedStateForSaveMode2 = true;
+ system.defaults.NSGlobalDomain._HIHideMenuBar = true;
system.defaults.dock.autohide = true;
+ system.defaults.dock.mru-spaces = false;
system.defaults.dock.orientation = "left";
system.defaults.dock.showhidden = true;
- system.defaults.dock.mru-spaces = false;
system.defaults.finder.AppleShowAllExtensions = true;
system.defaults.finder.QuitMenuItem = true;
@@ -37,21 +38,24 @@
pkgs.awscli
pkgs.bear
pkgs.brotli
- # pkgs.cachix
pkgs.ctags
pkgs.curl
pkgs.direnv
+ pkgs.entr
pkgs.fzf
pkgs.gettext
pkgs.git
+ pkgs.gitAndTools.gh
pkgs.gnupg
pkgs.htop
pkgs.jq
+ pkgs.kitty
pkgs.mosh
pkgs.ripgrep
pkgs.shellcheck
pkgs.silver-searcher
pkgs.vault
+ pkgs.youtube-dl
pkgs.qes
pkgs.darwin-zsh-completions
@@ -75,12 +79,12 @@
services.nix-daemon.enable = true;
services.nix-daemon.enableSocketListener = true;
- # FIXME workaround for https://github.com/NixOS/nix/issues/2523
- # launchd.daemons.nix-daemon.environment.OBJC_DISABLE_INITIALIZE_FORK_SAFETY = "YES";
nix.extraOptions = ''
gc-keep-derivations = true
gc-keep-outputs = true
+ min-free = 68719480000
+ max-free = 274877900000
log-lines = 128
'';
@@ -109,8 +113,8 @@
bind-key -r "<" swap-window -t -1
bind-key -r ">" swap-window -t +1
- bind-key -n M-r run "tmux send-keys -t .+ C-l Up Enter"
- bind-key -n M-t run "tmux send-keys -t _ C-l Up Enter"
+ bind-key -n M-c run "tmux send-keys -t .+ C-\\\\ && tmux send-keys -t .+ C-a C-k C-l Up && tmux send-keys -t .+ Enter"
+ bind-key -n M-r run "tmux send-keys -t .+ C-a C-k C-l Up && tmux send-keys -t .+ Enter"
set -g pane-active-border-style fg=black
set -g pane-border-style fg=black
@@ -221,6 +225,13 @@
typeset -U PATH
}
+ z() {
+ local dir
+
+ dir=$(find ~/Code -mindepth 2 -maxdepth 2 | fzf --preview-window right:50% --preview 'git -C {} log --pretty=color --color=always -16')
+ cd "$dir"
+ }
+
xi() {
curl -F 'f:1=<-' ix.io
}
@@ -344,7 +355,7 @@
exec /usr/bin/sandbox-exec -f /etc/nix/user-sandbox.sb $SHELL -l
}
- no-sandbox() {
+ tmux-run() {
tmux split-window -c '#{pane_current_path}' -p 25
if [ $# -gt 0 ]; then
tmux send-keys -t . "$*" Enter
@@ -371,6 +382,7 @@
environment.shellAliases.gcb = "git checkout -B";
environment.shellAliases.gd = "git diff --minimal --patch";
environment.shellAliases.gf = "git fetch";
+ environment.shellAliases.ga = "git log --pretty=color --all";
environment.shellAliases.gg = "git log --pretty=color --graph";
environment.shellAliases.gl = "git log --pretty=nocolor";
environment.shellAliases.grh = "git reset --hard";
@@ -387,12 +399,6 @@
environment.darwinConfig = "$HOME/.config/nixpkgs/darwin/configuration.nix";
- nix.nixPath =
- [{ # Use local nixpkgs checkout instead of channels.
- darwin-config = "$HOME/.config/nixpkgs/darwin/configuration.nix";
- darwin = "$HOME/.nix-defexpr/darwin"; }
- ];
-
nixpkgs.config.allowUnfree = true;
nixpkgs.overlays = [
@@ -465,4 +471,5 @@
# You should generally set this to the total number of logical cores in your system.
# $ sysctl -n hw.ncpu
nix.maxJobs = 1;
+ nix.buildCores = 1;
}