mirror of
https://github.com/LnL7/nix-darwin.git
synced 2025-03-31 04:04:45 +00:00
lnl: update
This commit is contained in:
parent
5fba29c1c8
commit
6a255bd47c
1 changed files with 20 additions and 13 deletions
|
@ -14,11 +14,12 @@
|
||||||
system.defaults.NSGlobalDomain.NSAutomaticSpellingCorrectionEnabled = false;
|
system.defaults.NSGlobalDomain.NSAutomaticSpellingCorrectionEnabled = false;
|
||||||
system.defaults.NSGlobalDomain.NSNavPanelExpandedStateForSaveMode = true;
|
system.defaults.NSGlobalDomain.NSNavPanelExpandedStateForSaveMode = true;
|
||||||
system.defaults.NSGlobalDomain.NSNavPanelExpandedStateForSaveMode2 = true;
|
system.defaults.NSGlobalDomain.NSNavPanelExpandedStateForSaveMode2 = true;
|
||||||
|
system.defaults.NSGlobalDomain._HIHideMenuBar = true;
|
||||||
|
|
||||||
system.defaults.dock.autohide = true;
|
system.defaults.dock.autohide = true;
|
||||||
|
system.defaults.dock.mru-spaces = false;
|
||||||
system.defaults.dock.orientation = "left";
|
system.defaults.dock.orientation = "left";
|
||||||
system.defaults.dock.showhidden = true;
|
system.defaults.dock.showhidden = true;
|
||||||
system.defaults.dock.mru-spaces = false;
|
|
||||||
|
|
||||||
system.defaults.finder.AppleShowAllExtensions = true;
|
system.defaults.finder.AppleShowAllExtensions = true;
|
||||||
system.defaults.finder.QuitMenuItem = true;
|
system.defaults.finder.QuitMenuItem = true;
|
||||||
|
@ -37,21 +38,24 @@
|
||||||
pkgs.awscli
|
pkgs.awscli
|
||||||
pkgs.bear
|
pkgs.bear
|
||||||
pkgs.brotli
|
pkgs.brotli
|
||||||
# pkgs.cachix
|
|
||||||
pkgs.ctags
|
pkgs.ctags
|
||||||
pkgs.curl
|
pkgs.curl
|
||||||
pkgs.direnv
|
pkgs.direnv
|
||||||
|
pkgs.entr
|
||||||
pkgs.fzf
|
pkgs.fzf
|
||||||
pkgs.gettext
|
pkgs.gettext
|
||||||
pkgs.git
|
pkgs.git
|
||||||
|
pkgs.gitAndTools.gh
|
||||||
pkgs.gnupg
|
pkgs.gnupg
|
||||||
pkgs.htop
|
pkgs.htop
|
||||||
pkgs.jq
|
pkgs.jq
|
||||||
|
pkgs.kitty
|
||||||
pkgs.mosh
|
pkgs.mosh
|
||||||
pkgs.ripgrep
|
pkgs.ripgrep
|
||||||
pkgs.shellcheck
|
pkgs.shellcheck
|
||||||
pkgs.silver-searcher
|
pkgs.silver-searcher
|
||||||
pkgs.vault
|
pkgs.vault
|
||||||
|
pkgs.youtube-dl
|
||||||
|
|
||||||
pkgs.qes
|
pkgs.qes
|
||||||
pkgs.darwin-zsh-completions
|
pkgs.darwin-zsh-completions
|
||||||
|
@ -75,12 +79,12 @@
|
||||||
|
|
||||||
services.nix-daemon.enable = true;
|
services.nix-daemon.enable = true;
|
||||||
services.nix-daemon.enableSocketListener = 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 = ''
|
nix.extraOptions = ''
|
||||||
gc-keep-derivations = true
|
gc-keep-derivations = true
|
||||||
gc-keep-outputs = true
|
gc-keep-outputs = true
|
||||||
|
min-free = 68719480000
|
||||||
|
max-free = 274877900000
|
||||||
log-lines = 128
|
log-lines = 128
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
@ -109,8 +113,8 @@
|
||||||
bind-key -r "<" swap-window -t -1
|
bind-key -r "<" swap-window -t -1
|
||||||
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-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-t run "tmux send-keys -t _ C-l Up 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-active-border-style fg=black
|
||||||
set -g pane-border-style fg=black
|
set -g pane-border-style fg=black
|
||||||
|
@ -221,6 +225,13 @@
|
||||||
typeset -U PATH
|
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() {
|
xi() {
|
||||||
curl -F 'f:1=<-' ix.io
|
curl -F 'f:1=<-' ix.io
|
||||||
}
|
}
|
||||||
|
@ -344,7 +355,7 @@
|
||||||
exec /usr/bin/sandbox-exec -f /etc/nix/user-sandbox.sb $SHELL -l
|
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
|
tmux split-window -c '#{pane_current_path}' -p 25
|
||||||
if [ $# -gt 0 ]; then
|
if [ $# -gt 0 ]; then
|
||||||
tmux send-keys -t . "$*" Enter
|
tmux send-keys -t . "$*" Enter
|
||||||
|
@ -371,6 +382,7 @@
|
||||||
environment.shellAliases.gcb = "git checkout -B";
|
environment.shellAliases.gcb = "git checkout -B";
|
||||||
environment.shellAliases.gd = "git diff --minimal --patch";
|
environment.shellAliases.gd = "git diff --minimal --patch";
|
||||||
environment.shellAliases.gf = "git fetch";
|
environment.shellAliases.gf = "git fetch";
|
||||||
|
environment.shellAliases.ga = "git log --pretty=color --all";
|
||||||
environment.shellAliases.gg = "git log --pretty=color --graph";
|
environment.shellAliases.gg = "git log --pretty=color --graph";
|
||||||
environment.shellAliases.gl = "git log --pretty=nocolor";
|
environment.shellAliases.gl = "git log --pretty=nocolor";
|
||||||
environment.shellAliases.grh = "git reset --hard";
|
environment.shellAliases.grh = "git reset --hard";
|
||||||
|
@ -387,12 +399,6 @@
|
||||||
|
|
||||||
environment.darwinConfig = "$HOME/.config/nixpkgs/darwin/configuration.nix";
|
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.config.allowUnfree = true;
|
||||||
|
|
||||||
nixpkgs.overlays = [
|
nixpkgs.overlays = [
|
||||||
|
@ -465,4 +471,5 @@
|
||||||
# You should generally set this to the total number of logical cores in your system.
|
# You should generally set this to the total number of logical cores in your system.
|
||||||
# $ sysctl -n hw.ncpu
|
# $ sysctl -n hw.ncpu
|
||||||
nix.maxJobs = 1;
|
nix.maxJobs = 1;
|
||||||
|
nix.buildCores = 1;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue