enable gpg/ssh agent

This commit is contained in:
iofq 2023-05-21 03:56:44 -05:00
parent 5df8317a4a
commit f21d40ce98
3 changed files with 4 additions and 3 deletions

View file

@ -9,9 +9,9 @@
inputs.nixpkgs.follows = "nixpkgs"; inputs.nixpkgs.follows = "nixpkgs";
}; };
nvim = { nvim = {
url = "github:iofq/nvim.nix"; url = "github:iofq/nvim.nix";
inputs.nixpkgs.follows = "nixpkgs"; inputs.nixpkgs.follows = "nixpkgs";
}; };
}; };
outputs = { self, nixpkgs, home-manager, nixos-hardware, ... } @inputs: outputs = { self, nixpkgs, home-manager, nixos-hardware, ... } @inputs:
let let

View file

@ -26,6 +26,7 @@
}; };
services.gpg-agent = { services.gpg-agent = {
enable = true; enable = true;
enableSshSupport = true;
pinentryFlavor = "curses"; pinentryFlavor = "curses";
}; };
} }

View file

@ -58,7 +58,7 @@
bind '"\C-k": previous-history' bind '"\C-k": previous-history'
bind '"\C-j": next-history' bind '"\C-j": next-history'
function cd { function cd {
cmd="ls" cmd="ls --color=auto"
builtin cd "$@" && $cmd builtin cd "$@" && $cmd
} }
exists "kubectl" && source <(kubectl completion bash) exists "kubectl" && source <(kubectl completion bash)