Compare commits

...

11 Commits

Author SHA1 Message Date
Raghav Gururajan 7acb846e5b
Add poezio. 2021-12-21 15:09:57 -05:00
Raghav Gururajan 94d4f830ad
Add gtk. 2021-12-21 15:09:57 -05:00
Raghav Gururajan ac78a723ba
Add git. 2021-12-21 15:09:57 -05:00
Raghav Gururajan ab950cb453
Add gnupg. 2021-12-21 15:09:57 -05:00
Raghav Gururajan 8a616108e6
Add termite. 2021-12-21 15:09:56 -05:00
Raghav Gururajan dba3cf6aa4
Add sway. 2021-12-21 15:09:56 -05:00
Raghav Gururajan 351f20ac4f
Add weston. 2021-12-21 15:09:56 -05:00
Raghav Gururajan b7087b7daf
Add stumpwm. 2021-12-21 15:09:56 -05:00
Raghav Gururajan e44ee8f6a1
Add x. 2021-12-21 15:09:56 -05:00
Raghav Gururajan 7b5abc503d
Add shepherd. 2021-12-21 15:09:56 -05:00
Raghav Gururajan aa1e21f53c
Add bash. 2021-12-21 15:09:48 -05:00
26 changed files with 328 additions and 0 deletions

18
bash/bash_profile Normal file
View File

@ -0,0 +1,18 @@
# Set default text editors.
export EDITOR=nano
export VISUAL="emacsclient -nw"
# GnuPG
## Set GPG TTY.
export GPG_TTY=$(tty)
## Set SSH to use gpg-agent.
unset SSH_AGENT_PID
if [ "${gnupg_SSH_AUTH_SOCK_by:-0}" -ne $$ ]; then
export SSH_AUTH_SOCK="$(gpgconf --list-dirs agent-ssh-socket)"
fi
# Start X display server.
if [ -z $DISPLAY ] && [ "${XDG_VTNR}" -eq 2 ]; then
exec xinit
fi

64
bash/bash_profile.bak Normal file
View File

@ -0,0 +1,64 @@
# Honor per-interactive-shell startup file.
if [ -f ~/.bashrc ]; then
source ~/.bashrc
fi
# Activate Guix extra profiles.
for i in ~/.guix-extra-profiles/*; do
profile=$i/$(basename "$i")
if [ -f "$profile"/etc/profile ]; then
GUIX_PROFILE="$profile"
source "$profile"/etc/profile
fi
if [ -d "$profile"/etc/xdg ]; then
export XDG_CONFIG_DIRS="$profile"/etc/xdg:$XDG_CONFIG_DIRS
fi
if [ -d "$profile"/share ]; then
export XDG_DATA_DIRS="$profile"/share:$XDG_DATA_DIRS
fi
if [ -d "$profile"/share/man ]; then
export MANPATH="$profile"/share/man:$MANPATH
fi
if [ -d "$profile"/share/info ]; then
export INFOPATH="$profile"/share/info:$INFOPATH
fi
unset profile
done
# Activate Nix profile.
if [ -f /run/current-system/profile/etc/profile.d/nix.sh ]; then
source /run/current-system/profile/etc/profile.d/nix.sh
fi
# Activate Flatpak profile.
flatpak=$HOME/.local/share/flatpak/exports
if [ -d "$flatpak"/bin ]; then
export PATH="$flatpak"/bin:$PATH
fi
if [ -d "$flatpak"/share ]; then
export XDG_DATA_DIRS="$flatpak"/share:$XDG_DATA_DIRS
fi
unset flatpak
# Ammend PATH.
export PATH="$HOME/.bin:$PATH"
# Start Shepherd service manager.
if [[ ! -S ${XDG_RUNTIME_DIR-HOME/.cache}/shepherd/socket ]]; then
shepherd
fi
# GnuPG
## Set GPG TTY.
export GPG_TTY=$(tty)
## Set SSH to use gpg-agent.
unset SSH_AGENT_PID
if [ "${gnupg_SSH_AUTH_SOCK_by:-0}" -ne $$ ]; then
export SSH_AUTH_SOCK="$(gpgconf --list-dirs agent-ssh-socket)"
fi
# Start X display server.
if [ -z $DISPLAY ] && [ "${XDG_VTNR}" -eq 2 ]; then
exec xinit
fi

19
git/config Normal file
View File

@ -0,0 +1,19 @@
[user]
name = Raghav Gururajan
email = rg@raghavgururajan.name
signingkey = 7F8BE551
[default]
editor = nano
[core]
editor = nano
[commit]
gpgsign = true
[sendemail]
smtpserver = smtp.migadu.com
smtpuser = rg@raghavgururajan.name
smtpencryption = ssl
smtpserverport = 465
assume8bitEncoding = UTF-8
[credential]
helper = cache --timeout 31536000

6
gnupg/dirmngr.conf Normal file
View File

@ -0,0 +1,6 @@
# Route all network access via Tor.
use-tor
# Specify keyserver to receive keys, send keys, and search for keys.
keyserver hkps://keys.openpgp.org

5
gnupg/gpa.conf Normal file
View File

@ -0,0 +1,5 @@
default-key 7F8BE551
backup-generated
advanced-ui
show-advanced-options

14
gnupg/gpg-agent.conf Normal file
View File

@ -0,0 +1,14 @@
# Set the time a cache entry is valid to 1 day.
default-cache-ttl 86400
default-cache-ttl-ssh 86400
# Set the maximum time a cache entry is valid to 1 day.
max-cache-ttl 86400
max-cache-ttl-ssh 86400
# Specify pinentry program.
pinentry-program /home/rg/.guix-home/profile/bin/pinentry
# Enable OpenSSH agent emulation.
enable-ssh-support

21
gnupg/gpg.conf Normal file
View File

@ -0,0 +1,21 @@
# Specify the default key to sign with.
default-key 7F8BE551
# Assume that command line arguments are given as UTF-8 strings.
utf8-strings
# Automatically locate and retrieve keys.
auto-key-locate keyserver,local
# Set the list of personal cipher preferences.
personal-cipher-preferences AES256
# Set the list of personal digest preferences.
personal-digest-preferences SHA512
# Set the list of personal compression preferences.
personal-compress-preferences ZLIB
# Set the digest for force-use.
digest-algo sha512

3
gnupg/scdaemon.conf Normal file
View File

@ -0,0 +1,3 @@
# Use shared mode to access the card via PC/SC.
pcsc-shared

3
gnupg/sshcontrol Normal file
View File

@ -0,0 +1,3 @@
# secondary
28955BA9E8853437C51EBC9F82AE96C8D87EB59B 0

3
gtk/gtkrc-2.0 Normal file
View File

@ -0,0 +1,3 @@
gtk-font-name = NotoSans 10
gtk-print-backends = file,cups

6
gtk/settings.ini Normal file
View File

@ -0,0 +1,6 @@
[Settings]
gtk-application-prefer-dark-theme = true
gtk-font-name = NotoSans 10
gtk-icon-theme-name = hicolor
gtk-print-backends = file,cups

4
poezio/plugins/irc.cfg Normal file
View File

@ -0,0 +1,4 @@
[irc]
gateway = irc.cheogram.com
initial_connect = false

3
poezio/plugins/link.cfg Normal file
View File

@ -0,0 +1,3 @@
[link]
browser = icecat

3
poezio/plugins/otr.cfg Normal file
View File

@ -0,0 +1,3 @@
[otr]
log = true

29
poezio/poezio.cfg Normal file
View File

@ -0,0 +1,29 @@
[Poezio]
device_id = secondary
# Security
ca_cert_path = /etc/ssl/certs/ca-certificates.crt
certificate = A8:32:69:79:8F:53:DB:D6:93:2F:FD:90:B5:08:B1:8D:E2:D8:7A:6F:82:6C:FB:6A:3D:DE:6D:34:89:3D:26:C7
# Account
default_nick = raghavgururajan
jid = rg@raghavgururajan.name
open_all_bookmarks = true
# Connectivity
autorejoin = true
# XMPP Features
enable_smacks = true
use_bookmark_method = pep
# Visual Interface
roster_show_offline = true
roster_sort = name
# User Interaction
separate_history = true
# Plugins
plugins_autoload = irc:link:otr:upload

11
shepherd/init.d/emacs.scm Normal file
View File

@ -0,0 +1,11 @@
(define emacs
(make <service>
#:provides '(emacs)
#:start (make-system-constructor "emacs --daemon")
#:stop (make-system-destructor "emacsclient -e '(kill-emacs)'")
#:respawn? #t))
(register-services emacs)
(start emacs)

11
shepherd/init.d/gnupg.scm Normal file
View File

@ -0,0 +1,11 @@
(define gpg-agent
(make <service>
#:provides '(gpg-agent)
#:start (make-system-constructor "gpg-agent --daemon")
#:stop (make-system-destructor "gpg-connect-agent killagent /bye")
#:respawn? #t))
(register-services gpg-agent)
(start gpg-agent)

View File

@ -0,0 +1,11 @@
(define polkit-agent
(make <service>
#:provides '(polkit-agent)
#:start (make-system-constructor "$HOME/.guix-profile/libexec/polkit-gnome-authentication-agent-1 &")
#:stop (make-system-destructor "pkill -9 polkit-gnome-authentication-agent-1")
#:respawn? #t))
(register-services polkit-agent)
(start polkit-agent)

View File

@ -0,0 +1,11 @@
(define udiskie
(make <service>
#:provides '(udiskie)
#:start (make-system-constructor "udiskie &")
#:stop (make-system-destructor "pkill -9 udiskie")
#:respawn? #t))
(register-services udiskie)
(start udiskie)

14
shepherd/init.scm Normal file
View File

@ -0,0 +1,14 @@
(use-modules (shepherd service)
((ice-9 ftw) #:select (scandir)))
;; Load all the files in the directory 'init.d' with a suffix '.scm'.
(for-each
(lambda (file)
(load (string-append "init.d/" file)))
(scandir (string-append (dirname (current-filename)) "/init.d")
(lambda (file)
(string-suffix? ".scm" file))))
;; Send shepherd into the background
(action 'shepherd 'daemonize)

12
stumpwm/init.lisp Normal file
View File

@ -0,0 +1,12 @@
(in-package :stumpwm)
;; Set prefix to Super+T.
(set-prefix-key (kbd "s-t"))
;; Set font to NotoMono.
(require :ttf-fonts)
(setf xft:*font-dirs* '("/run/current-system/profile/share/fonts/"))
(setf clx-truetype:+font-cache-filename+ (concat (getenv "HOME") "/.fonts/font-cache.sexp"))
(xft:cache-fonts)
(set-font (make-instance 'xft:font :family "Noto Mono" :subfamily "Regular" :size 10))

18
sway/config.bak Normal file
View File

@ -0,0 +1,18 @@
# Font.
font pango:NotoMono 10
# Orientation.
default_orientation auto
# Layout.
workspace_layout tabbed
# Title.
title_align center
# Terminal.
set $term termite
# Commands.
exec_always gpg-connect-agent UPDATESTARTUPTTY /bye

7
termite/config Normal file
View File

@ -0,0 +1,7 @@
[options]
font = NotoMono 10
[colors]
foreground = #ffffff
background = #000000

20
weston/weston.ini Normal file
View File

@ -0,0 +1,20 @@
[core]
shell=desktop-shell.so
xwayland=true
modules=cms-colord.so
backend=drm-backend.so
[libinput]
touchscreen_calibrator=true
[shell]
background-image=${XDG_DATA_DIRS}/weston/background.png
[keyboard]
keymap_layout=us
[terminal]
font=NotoMono
font-size=10
term=termite

9
x/xinitrc Normal file
View File

@ -0,0 +1,9 @@
# GnuPG
## Configure pinentry to use the correct TTY.
export GPG_TTY=$(tty)
## Update gpg-agent about the correct TTY.
gpg-connect-agent updatestartuptty /bye >/dev/null
# Start window-manager.
dbus-run-session -- stumpwm

3
x/xserverrc Normal file
View File

@ -0,0 +1,3 @@
# Initiate X display server.
exec X -nolisten tcp "$@" vt$XDG_VTNR