2023-04-17 10:44:54 +02:00
|
|
|
{ inputs, outputs, lib, pkgs, config, ... }:
|
|
|
|
|
|
|
|
{
|
|
|
|
home = {
|
|
|
|
username = lib.mkForce "pavelatanasov";
|
|
|
|
homeDirectory = lib.mkForce "/Users/pavelatanasov";
|
2023-07-23 16:06:17 +02:00
|
|
|
stateVersion = "23.05";
|
2023-04-17 10:44:54 +02:00
|
|
|
};
|
|
|
|
|
2023-07-25 22:42:47 +02:00
|
|
|
# Set env vars
|
2023-04-17 10:44:54 +02:00
|
|
|
home.sessionVariables = {
|
2023-07-25 22:42:47 +02:00
|
|
|
EDITOR = "nvim";
|
2023-04-17 10:44:54 +02:00
|
|
|
};
|
|
|
|
|
2023-07-25 22:42:47 +02:00
|
|
|
# Let Home Manager install and manage itself.
|
|
|
|
programs.home-manager.enable = true;
|
2023-07-23 16:06:17 +02:00
|
|
|
|
2023-04-17 10:44:54 +02:00
|
|
|
home.packages = with pkgs; [
|
|
|
|
# WM
|
|
|
|
yabai
|
|
|
|
skhd
|
|
|
|
|
2023-07-31 06:53:12 +02:00
|
|
|
# Discord
|
|
|
|
discord
|
|
|
|
|
2023-07-13 13:31:56 +02:00
|
|
|
# Shell
|
|
|
|
btop
|
|
|
|
ripgrep
|
|
|
|
|
2023-04-17 10:44:54 +02:00
|
|
|
# Neovim
|
|
|
|
neovim
|
2023-07-23 16:06:17 +02:00
|
|
|
fennel
|
2023-07-13 13:31:56 +02:00
|
|
|
fennel-language-server
|
2023-04-17 10:44:54 +02:00
|
|
|
|
|
|
|
# Dhall
|
|
|
|
dhall
|
2023-09-06 21:34:00 +02:00
|
|
|
# dhall-lsp-server
|
2023-04-17 10:44:54 +02:00
|
|
|
|
2023-07-23 16:06:17 +02:00
|
|
|
# Circom
|
|
|
|
circom
|
|
|
|
circom-lsp
|
|
|
|
|
2023-04-17 10:44:54 +02:00
|
|
|
# Nix
|
|
|
|
nil
|
|
|
|
|
2023-07-13 13:31:56 +02:00
|
|
|
# SSH and GPG
|
|
|
|
openssh
|
|
|
|
gnupg
|
|
|
|
pinentry_mac
|
|
|
|
(pass.withExtensions (extensions: with extensions; [
|
2023-07-25 22:42:47 +02:00
|
|
|
pass-otp
|
2023-07-13 13:31:56 +02:00
|
|
|
]))
|
|
|
|
|
2023-04-17 10:44:54 +02:00
|
|
|
# FMI
|
|
|
|
vim-fmi-cli
|
|
|
|
|
|
|
|
# Zig
|
|
|
|
zigpkgs.master
|
|
|
|
inputs.zls-overlay.packages.x86_64-darwin.default
|
2023-07-13 13:31:56 +02:00
|
|
|
|
2023-07-23 16:06:17 +02:00
|
|
|
# Android
|
|
|
|
android-tools
|
2023-04-17 10:44:54 +02:00
|
|
|
];
|
|
|
|
|
|
|
|
reo101 = {
|
|
|
|
shell = {
|
|
|
|
enable = true;
|
2023-07-13 13:31:56 +02:00
|
|
|
atuin = true;
|
2023-04-17 10:44:54 +02:00
|
|
|
direnv = true;
|
|
|
|
zoxide = true;
|
2023-07-23 16:06:17 +02:00
|
|
|
extraConfig = ''
|
|
|
|
function take() {
|
|
|
|
mkdir -p "''$''\{@''\}" && cd "''$''\{@''\}"
|
|
|
|
}
|
|
|
|
'';
|
2023-04-17 10:44:54 +02:00
|
|
|
};
|
|
|
|
wezterm = {
|
|
|
|
enable = true;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
programs.git = {
|
|
|
|
enable = true;
|
2023-07-13 13:31:56 +02:00
|
|
|
userName = "reo101";
|
|
|
|
# userEmail = "pavel.atanasov@limechain.tech";
|
|
|
|
userEmail = "pavel.atanasov2001@gmail.com";
|
|
|
|
signing = {
|
|
|
|
signByDefault = true;
|
|
|
|
key = "675AA7EF13964ACB";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
home.file.".gnupg/gpg-agent.conf" = {
|
|
|
|
text = ''
|
|
|
|
allow-preset-passphrase
|
|
|
|
max-cache-ttl 86400
|
|
|
|
default-cache-ttl 86400
|
|
|
|
enable-ssh-support
|
|
|
|
# pinentry-program ${pkgs.pinentry_mac}/Applications/pinentry-mac.app/Contents/MacOS/pinentry-mac
|
|
|
|
# pinentry-program /usr/local/opt/pinentry-touchid/bin/pinentry-touchid
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
|
|
|
|
home.file.".gnupg/sshcontrol" = {
|
2023-07-25 22:42:47 +02:00
|
|
|
text = ''
|
2023-07-13 13:31:56 +02:00
|
|
|
CFDE97EDC2FDB2FD27020A084F1E3F40221BAFE7
|
|
|
|
'';
|
2023-04-17 10:44:54 +02:00
|
|
|
};
|
|
|
|
|
2023-07-13 13:31:56 +02:00
|
|
|
programs.zsh.initExtra = ''
|
|
|
|
# if [ "''${SSH_AUTH_SOCK_by:-0}" -ne $$ ]; then
|
|
|
|
# export SSH_AUTH_SOCK="$(gpgconf --list-dirs agent-ssh-socket)"
|
|
|
|
# fi
|
|
|
|
# if [ -z "$SSH_AUTH_SOCK" ]; then
|
|
|
|
# export SSH_AUTH_SOCK=$(${pkgs.gnupg}/bin/gpgconf --list-dirs agent-ssh-socket)
|
|
|
|
# fi
|
|
|
|
unset SSH_AGENT_PID
|
|
|
|
export SSH_AUTH_SOCK=$(${pkgs.gnupg}/bin/gpgconf --list-dirs agent-ssh-socket)
|
|
|
|
gpg-connect-agent updatestartuptty /bye >/dev/null
|
|
|
|
export GPG_TTY=$(tty)
|
|
|
|
'';
|
2023-04-17 10:44:54 +02:00
|
|
|
}
|