config.scm 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162
  1. ;; To reproduce the exact same profile, you also
  2. ;; need to capture the channels being used, as returned by "guix describe".
  3. ;; See the "Replicating Guix" section in the manual.
  4. (use-modules (gnu home)
  5. (gnu packages)
  6. (gnu services)
  7. (guix gexp)
  8. (gnu home services shells))
  9. (define guix-config-path "/src/guix-config")
  10. (define (in-config path)
  11. (string-append (getenv "HOME") guix-config-path "/" path))
  12. (home-environment
  13. (packages (specifications->packages (list "acpica"
  14. "alacritty"
  15. "audacity"
  16. "blender"
  17. "blueman"
  18. "breeze"
  19. "breeze-gtk"
  20. "breeze-icons"
  21. "calc"
  22. "clamav"
  23. "clipmenu"
  24. "cowsay"
  25. "daikichi"
  26. "desktop-file-utils"
  27. "direnv"
  28. "emacs"
  29. "falkon"
  30. "font-hack"
  31. "fortunes-jkirchartz"
  32. "gimp"
  33. "gnome-keyring"
  34. "h-client"
  35. "handbrake"
  36. "htop"
  37. "imagemagick"
  38. "icecat"
  39. "inkscape"
  40. "inxi"
  41. "jami"
  42. "jq"
  43. "kdeconnect"
  44. "kdenlive"
  45. "kdiskmark"
  46. "keychain"
  47. "kid3"
  48. "libnotify"
  49. "libreoffice"
  50. "lshw"
  51. "maim"
  52. "meld"
  53. "mkvtoolnix:gui"
  54. "mu"
  55. "mupdf"
  56. "nextcloud-client"
  57. "nnn"
  58. "nsxiv"
  59. "nyxt"
  60. "offlineimap3"
  61. "pass-otp"
  62. "password-store"
  63. "pavucontrol"
  64. "picom"
  65. "pigz"
  66. "pv"
  67. "python-wrapper"
  68. "qemu"
  69. "qutebrowser"
  70. "redshift"
  71. "rofi"
  72. "rxvt-unicode"
  73. "socat"
  74. "supertuxkart"
  75. "tabbed"
  76. "telegram-desktop"
  77. "thunar-archive-plugin"
  78. "transmission"
  79. "transmission:gui"
  80. "transmission-remote-gtk"
  81. "unzip"
  82. "virt-manager"
  83. "vlc"
  84. "vorbis-tools"
  85. "xsel"
  86. "yt-dlp"
  87. "zathura"
  88. "zathura-cb"
  89. "zathura-djvu"
  90. "zathura-pdf-mupdf"
  91. "zathura-ps"
  92. "zbar"
  93. "zip")))
  94. (services
  95. (list (service home-bash-service-type
  96. (home-bash-configuration
  97. (aliases '(;; Modified commands
  98. ("l" . "ls -CF")
  99. ("la" . "ls -A")
  100. ;; ("ll" . "ls -alF")
  101. ;; ("ls" . "ls -p --color=auto")
  102. ;; ("grep" . "grep --color=auto")
  103. ;; Utility commands
  104. ("mpc" . "ncmpcpp")
  105. ("emc" . "em -nw")
  106. ("acortar" . "curl -s \"http://is.gd/create.php?format=simple&url=$(xsel -po)\" | xsel -pi")
  107. ("apagar" . "sudo shutdown -h 14:20")
  108. ("bajar" . "plowdown")
  109. ("subir" . "plowup")
  110. ("search-word" . "find . -type f -print0 | xargs -0 grep -l ")
  111. ("s" . "screen")
  112. ("screen" . "screen -aAxRl")
  113. ("jpg-optimized" . "find . -name *.jpg -exec jpegoptim --max=80 -t '\\'''\\'' {} \\;")
  114. ("prime-disable" . "export DRI_PRIME=0")
  115. ("prime-enable" . "export DRI_PRIME=1")
  116. ("mu4e" . "em -c -n --eval '\\''(mu4e)'\\''")
  117. ("webcam" . "webcam_mods bg-blur")
  118. ;; Custom ~/.scripts commands
  119. ("pass" . "$HOME/.scripts/pass-utils/passp")
  120. ("pomf" . "$HOME/.scripts/pomf.py")
  121. ("pomf-w" . "$HOME/.scripts/scrotpomf.sh")
  122. ("capas2png" . "$HOME/.scripts/Inkscape/layers2pngs.py")
  123. ("davpush" . "$HOME/.scripts/davpush.pl")
  124. ("tvgnu" . "$HOME/.scripts/TVenGNU.sh")
  125. ("haste" . "HASTE_SERVER=http://vte.distopico.info haste")
  126. ("hastebin" . "$HOME/.scripts/haste.sh")
  127. ;; Alias directories
  128. ("home" . "cd $HOME/")
  129. ("descargas" . "cd $HOME/Downloads")
  130. ("escritorio" . "cd $HOME/Desktop")
  131. ("musica" . "cd $HOME/Music")
  132. ("imagenes" . "cd $HOME/Pictures")
  133. ("publico" . "cd $HOME/Public")
  134. ("videos" . "cd $HOME/Videos")
  135. ;; Dist Parabola
  136. ("update-grub" . "sudo grub-mkconfig -o /boot/grub/grub.cfg")
  137. ;; Dist Debian Based
  138. ("repo" . "sudo add-apt-repository ")
  139. ("build-dep" . "sudo apt-get build-dep ")
  140. ("dist-upgrade" . "sudo apt-get dist-upgrade")
  141. ("search-app" . "sudo aptitude search")
  142. ("update-full" . "sudo aptitude full-upgrade -y && sudo aptitude clean")
  143. ;; Dist Guix
  144. ("guix-reconfigure" . "sudo guix system reconfigure /etc/config.scm; sudo update-boot")))
  145. (bashrc (list (local-file
  146. (in-config ".bashrc")
  147. "bashrc")))
  148. (bash-profile (list (local-file
  149. (in-config ".bash_profile")
  150. "bash_profile"))))))))