Add my binary cache and warn when stuff is not setup

This commit is contained in:
lelgenio 2022-08-23 21:00:04 -03:00
parent 077d9aff68
commit 40b4216818
2 changed files with 17 additions and 0 deletions

View file

@ -237,6 +237,13 @@ in {
networking.firewall.enable = false;
security.sudo.wheelNeedsPassword = false;
nix = {
binaryCaches = [
"https://cache.nixos.org/"
"https://lelgenio.cachix.org"
];
binaryCachePublicKeys = [
"lelgenio.cachix.org-1:W8tMlmDFLU/V+6DlChXjekxoHZpjgVHZpmusC4cueBc="
];
settings = {
substituters = ["https://hyprland.cachix.org"];
trusted-public-keys = ["hyprland.cachix.org-1:a7pgxzMz7+chwVL3/pzj6jIBMioiJM7ypFP8PwtkuGc="];

View file

@ -116,6 +116,16 @@ in {
set -g __accent_color "${accent.color}"
alias _fish_prompt_accent "_fish_prompt_color '$__accent_color'"
fzf_key_bindings
set_color red
if not test -d "$HOME/.password-store/"
echo "Password Store not yet setup"
end
if not test -f "$HOME/.ssh/id_rsa"
echo "SSH keys not yet setup"
end
if not rustc --version &> /dev/null
rustup default stable &>/dev/null &
end
'';
shellAbbrs = {
v = "kak";