summaryrefslogtreecommitdiff
path: root/.config/guix/modules/shell.scm
blob: b7bb619dd6172c9e3c9c32f3ccbf2e29be58a844 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
(define-module (shell)
  #:use-module (gnu home services)
  #:use-module (gnu home services shells))


(define-public shell-service
  (list
   (service home-bash-service-type
            (home-bash-configuration
             (aliases '(("suspend" . "sudo bash -c 'echo mem > /sys/power/state'")
                        ("guix-home" . "RUNNING_GUIX_HOME=1 guix home -L ${HOME}/.config/guix/modules/ reconfigure ${HOME}/.config/guix/${HOSTNAME}.scm")
                        ("guix-system" . "RUNNING_GUIX_HOME=0 sudo guix system -L ${HOME}/.config/guix/modules/ reconfigure ${HOME}/.config/guix/${HOSTNAME}.scm")
                        ("cp" . "cp -i")
                        ("grep" . "grep --color=auto")
                        ("ll" . "ls -l")
                        ("ls" . "ls -p --color=auto")
                        ("mkd" . "mkdir -pv")
                        ("mv" . "mv -i")
                        ("rm" . "rm -i")
                        ("vi" . "vim")
                        ("ytta" . "yt-dlp --extract-audio --format bestaudio/best")
                        ("yttv" . "yt-dlp -f b")))))))