Compare commits
12 Commits
84aba8ddcf
...
f42f3e640b
Author | SHA1 | Date |
---|---|---|
Raghav Gururajan | f42f3e640b | |
Raghav Gururajan | dbb909680f | |
Raghav Gururajan | 4ef73eefbf | |
Raghav Gururajan | d6102ef70d | |
Raghav Gururajan | 59ddde089a | |
Raghav Gururajan | 62e35949ef | |
Raghav Gururajan | f83a546a89 | |
Raghav Gururajan | 8abf9eb117 | |
Raghav Gururajan | 8929b6329b | |
Raghav Gururajan | 9569bf606b | |
Raghav Gururajan | 55a2fb1a85 | |
Raghav Gururajan | 59499387bf |
|
@ -0,0 +1,7 @@
|
|||
# DotFiles
|
||||
|
||||
Custom configuration files for Applications.
|
||||
|
||||
## License
|
||||
|
||||
GPL-3.0-or-later. See `COPYING`.
|
|
@ -0,0 +1,14 @@
|
|||
# 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
|
||||
|
|
@ -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
|
||||
|
|
@ -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
|
||||
|
|
@ -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
|
||||
|
|
@ -0,0 +1,5 @@
|
|||
default-key 7F8BE551
|
||||
backup-generated
|
||||
advanced-ui
|
||||
show-advanced-options
|
||||
|
|
@ -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
|
||||
|
|
@ -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
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
# Use shared mode to access the card via PC/SC.
|
||||
pcsc-shared
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
# secondary
|
||||
28955BA9E8853437C51EBC9F82AE96C8D87EB59B 0
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
gtk-font-name = Noto Sans 10
|
||||
gtk-print-backends = file,cups
|
||||
|
|
@ -0,0 +1,6 @@
|
|||
[Settings]
|
||||
gtk-application-prefer-dark-theme = true
|
||||
gtk-font-name = Noto Sans 10
|
||||
gtk-icon-theme-name = hicolor
|
||||
gtk-print-backends = file,cups
|
||||
|
|
@ -0,0 +1,28 @@
|
|||
(append
|
||||
(list
|
||||
(channel
|
||||
(name 'guixrus)
|
||||
(url "https://git.sr.ht/~whereiseveryone/guixrus")
|
||||
(introduction
|
||||
(make-channel-introduction
|
||||
"7c67c3a9f299517bfc4ce8235628657898dd26b2"
|
||||
(openpgp-fingerprint
|
||||
"CD2D 5EAA A98C CB37 DA91 D6B0 5F58 1664 7F8B E551"))))
|
||||
(channel
|
||||
(name 'nonguix)
|
||||
(url "https://gitlab.com/nonguix/nonguix")
|
||||
(introduction
|
||||
(make-channel-introduction
|
||||
"897c1a470da759236cc11798f4e0a5f7d4d59fbc"
|
||||
(openpgp-fingerprint
|
||||
"2A39 3FFF 68F4 EF7A 3D29 12AF 6F51 20A0 22FB B2D5"))))
|
||||
(channel
|
||||
(name 'rg)
|
||||
(url "https://git.sr.ht/~raghavgururajan/guix-channel")
|
||||
(introduction
|
||||
(make-channel-introduction
|
||||
"b56a4dabe12bfb1eed80467f48d389b32137cb60"
|
||||
(openpgp-fingerprint
|
||||
"CD2D 5EAA A98C CB37 DA91 D6B0 5F58 1664 7F8B E551")))))
|
||||
%default-channels)
|
||||
|
|
@ -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)
|
||||
|
|
@ -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)
|
||||
|
|
@ -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)
|
||||
|
|
@ -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)
|
||||
|
|
@ -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)
|
||||
|
|
@ -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))
|
||||
|
|
@ -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
|
||||
|
|
@ -0,0 +1,7 @@
|
|||
[options]
|
||||
font = NotoMono 10
|
||||
|
||||
[colors]
|
||||
foreground = #ffffff
|
||||
background = #000000
|
||||
|
|
@ -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
|
||||
|
|
@ -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
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
# Initiate X display server.
|
||||
exec X -nolisten tcp "$@" vt$XDG_VTNR
|
||||
|
Loading…
Reference in New Issue