diff options
| author | Ryan Schanzenbacher <ryan@rschanz.org> | 2023-04-18 01:02:27 -0400 |
|---|---|---|
| committer | Ryan Schanzenbacher <ryan@rschanz.org> | 2023-04-18 01:02:27 -0400 |
| commit | 6288091b7fea9bb2df667612fe7a4461a6311b0b (patch) | |
| tree | 2d69764e52a64f278a8479e222cde6c09c786d08 /home-config | |
Initial commit, more to come!
Diffstat (limited to 'home-config')
| -rw-r--r-- | home-config/.bash_profile | 8 | ||||
| -rw-r--r-- | home-config/.bashrc | 41 | ||||
| -rw-r--r-- | home-config/home-configuration.scm | 49 |
3 files changed, 98 insertions, 0 deletions
diff --git a/home-config/.bash_profile b/home-config/.bash_profile new file mode 100644 index 0000000..319a0ca --- /dev/null +++ b/home-config/.bash_profile | |||
| @@ -0,0 +1,8 @@ | |||
| 1 | export MOZ_ENABLE_WAYLAND=1 | ||
| 2 | |||
| 3 | export XDG_CURRENT_DESKTOP=sway | ||
| 4 | export XDG_SESSION_DESKTOP=sway | ||
| 5 | export _JAVA_AWT_WM_NONREPEATING=1 | ||
| 6 | |||
| 7 | # Honor per-interactive-shell startup file | ||
| 8 | if [ -f ~/.bashrc ]; then . ~/.bashrc; fi | ||
diff --git a/home-config/.bashrc b/home-config/.bashrc new file mode 100644 index 0000000..76bfbec --- /dev/null +++ b/home-config/.bashrc | |||
| @@ -0,0 +1,41 @@ | |||
| 1 | # Bash initialization for interactive non-login shells and | ||
| 2 | # for remote shells (info "(bash) Bash Startup Files"). | ||
| 3 | |||
| 4 | # Export 'SHELL' to child processes. Programs such as 'screen' | ||
| 5 | # honor it and otherwise use /bin/sh. | ||
| 6 | export SHELL | ||
| 7 | |||
| 8 | if [[ $- != *i* ]] | ||
| 9 | then | ||
| 10 | # We are being invoked from a non-interactive shell. If this | ||
| 11 | # is an SSH session (as in "ssh host command"), source | ||
| 12 | # /etc/profile so we get PATH and other essential variables. | ||
| 13 | [[ -n "$SSH_CLIENT" ]] && source /etc/profile | ||
| 14 | |||
| 15 | # Don't do anything else. | ||
| 16 | return | ||
| 17 | fi | ||
| 18 | |||
| 19 | # Source the system-wide file. | ||
| 20 | source /etc/bashrc | ||
| 21 | |||
| 22 | # Adjust the prompt depending on whether we're in 'guix environment'. | ||
| 23 | if [ -n "$GUIX_ENVIRONMENT" ] | ||
| 24 | then | ||
| 25 | PS1='\u@\h \w [env]\$ ' | ||
| 26 | else | ||
| 27 | PS1='\u@\h \w\$ ' | ||
| 28 | fi | ||
| 29 | alias ls='ls -p --color=auto' | ||
| 30 | alias ll='ls -l' | ||
| 31 | alias grep='grep --color=auto' | ||
| 32 | |||
| 33 | # Ryan's custom stuff | ||
| 34 | alias quit='exit' | ||
| 35 | export EDITOR=nvim | ||
| 36 | alias cat='bat --paging=never' | ||
| 37 | |||
| 38 | # GPG SETUP FOR SSH | ||
| 39 | export SSH_AUTH_SOCK=$(gpgconf --list-dirs agent-ssh-socket) | ||
| 40 | gpgconf --launch gpg-agent | ||
| 41 | export GPG_TTY=$(tty) | ||
diff --git a/home-config/home-configuration.scm b/home-config/home-configuration.scm new file mode 100644 index 0000000..3ee4f76 --- /dev/null +++ b/home-config/home-configuration.scm | |||
| @@ -0,0 +1,49 @@ | |||
| 1 | ;; This "home-environment" file can be passed to 'guix home reconfigure' | ||
| 2 | ;; to reproduce the content of your profile. This is "symbolic": it only | ||
| 3 | ;; specifies package names. To reproduce the exact same profile, you also | ||
| 4 | ;; need to capture the channels being used, as returned by "guix describe". | ||
| 5 | ;; See the "Replicating Guix" section in the manual. | ||
| 6 | |||
| 7 | (use-modules (gnu home) | ||
| 8 | (gnu packages) | ||
| 9 | (gnu services) | ||
| 10 | (guix gexp) | ||
| 11 | (gnu home services shells)) | ||
| 12 | |||
| 13 | (home-environment | ||
| 14 | ;; Below is the list of packages that will show up in your | ||
| 15 | ;; Home profile, under ~/.guix-home/profile. | ||
| 16 | (packages (specifications->packages (list "bat" | ||
| 17 | "qrencode" | ||
| 18 | "libreoffice" | ||
| 19 | "flatpak" | ||
| 20 | "gnupg" | ||
| 21 | "lsof" | ||
| 22 | "pavucontrol" | ||
| 23 | "bind:utils" | ||
| 24 | ;"firefox" | ||
| 25 | "irssi" | ||
| 26 | "font-cns11643" | ||
| 27 | "syncthing" | ||
| 28 | "perl" | ||
| 29 | "tor" | ||
| 30 | "unzip" | ||
| 31 | "alacritty" | ||
| 32 | "htop" | ||
| 33 | "curl" | ||
| 34 | "neovim" | ||
| 35 | "git"))) | ||
| 36 | |||
| 37 | ;; Below is the list of Home services. To search for available | ||
| 38 | ;; services, run 'guix home search KEYWORD' in a terminal. | ||
| 39 | (services | ||
| 40 | (list (service home-bash-service-type | ||
| 41 | (home-bash-configuration | ||
| 42 | (aliases '(("grep" . "grep --color=auto") ("ll" . "ls -l") | ||
| 43 | ("ls" . "ls -p --color=auto"))) | ||
| 44 | (bashrc (list (local-file | ||
| 45 | "/home/ryan/.config/guix/home-config/.bashrc" | ||
| 46 | "bashrc"))) | ||
| 47 | (bash-profile (list (local-file | ||
| 48 | "/home/ryan/.config/guix/home-config/.bash_profile" | ||
| 49 | "bash_profile")))))))) | ||
