summaryrefslogtreecommitdiff
path: root/home-config
diff options
context:
space:
mode:
authorRyan Schanzenbacher <ryan@rschanz.org>2023-04-18 01:02:27 -0400
committerRyan Schanzenbacher <ryan@rschanz.org>2023-04-18 01:02:27 -0400
commit6288091b7fea9bb2df667612fe7a4461a6311b0b (patch)
tree2d69764e52a64f278a8479e222cde6c09c786d08 /home-config
Initial commit, more to come!
Diffstat (limited to 'home-config')
-rw-r--r--home-config/.bash_profile8
-rw-r--r--home-config/.bashrc41
-rw-r--r--home-config/home-configuration.scm49
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 @@
1export MOZ_ENABLE_WAYLAND=1
2
3export XDG_CURRENT_DESKTOP=sway
4export XDG_SESSION_DESKTOP=sway
5export _JAVA_AWT_WM_NONREPEATING=1
6
7# Honor per-interactive-shell startup file
8if [ -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.
6export SHELL
7
8if [[ $- != *i* ]]
9then
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
17fi
18
19# Source the system-wide file.
20source /etc/bashrc
21
22# Adjust the prompt depending on whether we're in 'guix environment'.
23if [ -n "$GUIX_ENVIRONMENT" ]
24then
25 PS1='\u@\h \w [env]\$ '
26else
27 PS1='\u@\h \w\$ '
28fi
29alias ls='ls -p --color=auto'
30alias ll='ls -l'
31alias grep='grep --color=auto'
32
33# Ryan's custom stuff
34alias quit='exit'
35export EDITOR=nvim
36alias cat='bat --paging=never'
37
38# GPG SETUP FOR SSH
39export SSH_AUTH_SOCK=$(gpgconf --list-dirs agent-ssh-socket)
40gpgconf --launch gpg-agent
41export 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"))))))))