mirror of
https://github.com/willemml/dotfiles.nix.git
synced 2025-04-15 04:37:21 +00:00
iterm config in nix
This commit is contained in:
parent
15390d303d
commit
c35a1d8336
5 changed files with 1140 additions and 50 deletions
11
darwin.nix
Normal file
11
darwin.nix
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
{ config, pkgs, lib, inputs, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
imports = [ ./launchd.nix ./apps.nix ];
|
||||||
|
|
||||||
|
targets.darwin = {
|
||||||
|
defaults = {
|
||||||
|
"com.googlecode.iterm2" = import ./iterm2.nix;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
|
@ -195,6 +195,8 @@ in {
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
yafolding.enable = true;
|
||||||
|
|
||||||
format-all = {
|
format-all = {
|
||||||
enable = true;
|
enable = true;
|
||||||
command = [ "format-all-buffer" ];
|
command = [ "format-all-buffer" ];
|
||||||
|
@ -434,7 +436,7 @@ in {
|
||||||
(setq nix-nixfmt-bin "${pkgs.nixfmt}/bin/nixfmt")
|
(setq nix-nixfmt-bin "${pkgs.nixfmt}/bin/nixfmt")
|
||||||
(setq nix-executable "/nix/var/nix/profiles/default/bin/nix")
|
(setq nix-executable "/nix/var/nix/profiles/default/bin/nix")
|
||||||
'';
|
'';
|
||||||
bindLocal.nix-mode-map = { "C-c C-y" = "nix-format-buffer"; };
|
bindLocal.nix-mode-map = { "C-c C-y" = "nix-mode-format"; };
|
||||||
};
|
};
|
||||||
|
|
||||||
ob-calc = {
|
ob-calc = {
|
||||||
|
|
6
home.nix
6
home.nix
|
@ -19,7 +19,9 @@ in {
|
||||||
'';
|
'';
|
||||||
|
|
||||||
home.file.".gnupg/gpg-agent.conf".text = mkIf stdenv.isDarwin ''
|
home.file.".gnupg/gpg-agent.conf".text = mkIf stdenv.isDarwin ''
|
||||||
pinentry-program "${pkgs.pinentry_mac}/Applications/pinentry-mac.app/Contents/MacOS/pinentry-mac"
|
pinentry-program "${pkgs.pinentry-touchid}/bin/pinentry-touchid"
|
||||||
|
default-cache-ttl 30
|
||||||
|
max-cache-ttl 600
|
||||||
'';
|
'';
|
||||||
|
|
||||||
home.file.".config/zsh/am.sh" = mkIf stdenv.isDarwin {
|
home.file.".config/zsh/am.sh" = mkIf stdenv.isDarwin {
|
||||||
|
@ -49,7 +51,7 @@ in {
|
||||||
};
|
};
|
||||||
|
|
||||||
imports =
|
imports =
|
||||||
[ ./emacs.nix ./launchd.nix ./packages.nix ./programs.nix ./apps.nix ];
|
[ ./emacs.nix ./packages.nix ./programs.nix ./darwin.nix ];
|
||||||
|
|
||||||
nixpkgs.config = {
|
nixpkgs.config = {
|
||||||
allowUnfree = true;
|
allowUnfree = true;
|
||||||
|
|
1055
iterm2.nix
Normal file
1055
iterm2.nix
Normal file
File diff suppressed because it is too large
Load diff
30
programs.nix
30
programs.nix
|
@ -109,13 +109,33 @@
|
||||||
autocd = true;
|
autocd = true;
|
||||||
defaultKeymap = "emacs";
|
defaultKeymap = "emacs";
|
||||||
envExtra = ''
|
envExtra = ''
|
||||||
export PATH=${pkgs.pinentry_mac.out}/Applications/pinentry-mac.app/Contents/MacOS:$PATH
|
#!/usr/bin/env zsh
|
||||||
export GPG_TTY=$(tty)
|
export GPG_TTY=$(tty)
|
||||||
eval $(gpg-agent --daemon -q 2>/dev/null)
|
eval $(gpg-agent --daemon -q 2>/dev/null)
|
||||||
|
|
||||||
function gsearch() {
|
function gsearch() {
|
||||||
open -a Safari "https://google.com/search?q=$(echo $@ | sed -e 's/ /%20/g')"
|
open -a Safari "https://google.com/search?q=$(echo $@ | sed -e 's/ /%20/g')"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function plistxml2nix() {
|
||||||
|
tail -n +4 |
|
||||||
|
sed -e "s/<dict>/{/g" \
|
||||||
|
-e "s/<\/dict>/\}\;/g" \
|
||||||
|
-e "s/<key>/\"/g" \
|
||||||
|
-e "s/<\/key>/\"=/g" \
|
||||||
|
-e "s/<real>//g" \
|
||||||
|
-e "s/<\/real>/;/g" \
|
||||||
|
-e "s/<integer>//g" \
|
||||||
|
-e "s/<\/integer>/;/g" \
|
||||||
|
-e "s/<string>/\"/g" \
|
||||||
|
-e "s/<\/string>/\"\;/g" \
|
||||||
|
-e "s/<array>/\[/g" \
|
||||||
|
-e "s/<\/array>/\];/g" \
|
||||||
|
-e "s/<true\/>/true;/g" \
|
||||||
|
-e "s/<false\/>/false;/g" \
|
||||||
|
-e "$ d" |
|
||||||
|
sed \-e "$ s/;//"
|
||||||
|
}
|
||||||
'';
|
'';
|
||||||
dotDir = ".config/zsh";
|
dotDir = ".config/zsh";
|
||||||
history = {
|
history = {
|
||||||
|
|
Loading…
Add table
Reference in a new issue