diff options
| author | cashmere <cashmere@autistici.org> | 2026-07-11 11:08:01 +0200 |
|---|---|---|
| committer | cashmere <cashmere@autistici.org> | 2026-07-11 11:08:01 +0200 |
| commit | 49f803376e0e2693778fd6415e991473d0b7d438 (patch) | |
| tree | e99d511f73a3728a6a32c33a9f745370bf88df98 | |
| parent | efae20b2c942ae1e6a3f8c9dfede8dea785b6949 (diff) | |
| download | ports-49f803376e0e2693778fd6415e991473d0b7d438.tar.gz | |
add dotfiles.org
| -rw-r--r-- | dotfiles.org | 136 |
1 files changed, 136 insertions, 0 deletions
diff --git a/dotfiles.org b/dotfiles.org new file mode 100644 index 0000000..c3c49ba --- /dev/null +++ b/dotfiles.org @@ -0,0 +1,136 @@ +#+title: dotfiles management +#+PROPERTY: header-args :mkdirp yes +#+auto_tangle: t + +* git + +#+begin_src conf :tangle ~/.gitconfig +[user] + name = cashmere + email = cashmere@autistici.org + useConfigOnly = true + signingkey = B877C0AC3B080FBB! +[init] + defaultBranch = master +[commit] + gpgsign = true +[gpg] + format = openpgp + program = gpg +[pull] + rebase = true +[push] + autoSetupRemote = true + default = current +[fetch] + prune = true + pruneTags = true +[diff] + algorithm = histogram +[merge] + conflictstyle = zdiff3 +[alias] + dft = -c diff.external=difft diff + dlog = -c diff.external=difft log -p --ext-diff + dshow = -c diff.external=difft show --ext-diff +[rebase] + autosquash = true + autostash = true +[core] + autocrlf = input +[remote "origin"] + gcrypt-participants = B877C0AC3B080FBB + gcrypt-signingkey = B877C0AC3B080FBB +[wt] + basedir = .git/wt + copyignored = true + copymodified = true +#+end_src + +* .env + +#+begin_src sh :tangle ~/.env +# Common environment for login shells and X session +EDITOR=vi +PAGER=less +export EDITOR PAGER + +PASSWORD_STORE_DIR=$HOME/pass +export PASSWORD_STORE_DIR + +# Launch gpg-agent and expose its SSH socket +gpgconf --launch gpg-agent +export SSH_AUTH_SOCK=$(gpgconf --list-dirs agent-ssh-socket) +#+end_src + +* .profile + +#+begin_src sh :tangle ~/.profile +# +# .profile - POSIX Shell startup script for login shells +# +# see also sh(1), environ(7). +# + +# set ENV to a file invoked each time sh is started for interactive use. +ENV=$HOME/.shrc; export ENV + +# Let sh(1) know it's at home, despite /home being a symlink. +if [ "$PWD" != "$HOME" ] && [ "$PWD" -ef "$HOME" ] ; then cd ; fi + +# Query terminal size; useful for serial lines. +if [ -x /usr/bin/resizewin ] ; then /usr/bin/resizewin -z ; fi + +# Display a random cookie on each login. +if [ -x /usr/bin/fortune ] ; then /usr/bin/fortune freebsd-tips ; fi + +# Shared environment (GPG, editor, password-store) +. "$HOME/.env" + +# Start xonsh for interactive login shells on a tty +if [ -n "$PS1" ] && [ -x /usr/local/bin/xonsh ]; then + exec /usr/local/bin/xonsh +fi +#+end_src + +* .xinitrc + +#+begin_src sh :tangle ~/.xinitrc +. "$HOME/.env" +export GPG_TTY=$(tty) +exec i3 +#+end_src + + +* .xonshrc + +#+begin_src python :tangle ~/.xonshrc +# Tell gpg-agent which TTY to use for pinentry prompts +import subprocess +$GPG_TTY = $(tty).strip() +subprocess.run(["gpg-connect-agent", "updatestartuptty", "/bye"], stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL) +execx($(atuin init xonsh)) +#+end_src + +* atuin + +#+begin_src toml :tangle ~/.config/atuin/config.toml +auto_sync = true +sync_address = "https://atuin.cashmere.rs" +sync_frequency = "1m" + +[daemon] +enabled = true +systemd_socket = true + +[dotfiles] +enabled = true +#+end_src + +* ssh + +** authorized_keys + +#+begin_src conf :tangle ~/.ssh/authorized_keys +ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAILOwBidfdZzcSEIPSRT0C8U9U55WSES1ugqAKE+nvgQ9 (none) +#+end_src |
