blob: 03db4fbeb237c9c60d8bba1090e81d17a86b7c46 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
(define-module (shell)
#:use-module (gnu home services)
#:use-module (gnu services)
#:use-module (shell)
#: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")))))
(simple-service 'my-env-vars-service
home-environment-variables-service-type
`(("BROWSER" . "icecat")))))
|