about summary refs log tree commit diff
path: root/guix/home.scm
blob: 733b5883a32f4af493ebb605b0734be92d332e37 (plain) (blame)
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
(use-modules (gnu home)
             (gnu home services)
             (gnu home services desktop)
             (gnu home services gnupg)
             (gnu home services shells)
             (gnu home services ssh)
             (gnu packages)
             (gnu services)
             (guix gexp)
             (guix packages))

(home-environment
  (packages
    (cons*
      (specifications->packages
        '("aerc" "dante" "isync" "mu"
          "audacious" "mediainfo" "mpv" "simplescreenrecorder"
          "awesome" "dbus" "keynav" "sx" "xdg-utils" "xkill"
          "bastet" "gnujump" "hedgewars"
          "copyq" "pavucontrol" "playerctl" "pulsemixer" "xclip" "xrandr"
          "dico" "imv" "man-pages" "man-pages-posix"
          "extremetuxracer" "kiki" "neverball" "red-eclipse"
          "font-google-noto" "font-google-noto-emoji"
          "font-google-noto-sans-cjk" "font-google-noto-serif-cjk"
          "font-latin-modern" "font-liberation" "font-wqy-microhei"
          "gcc-toolchain" "make" "python" "texlive" "zig"
          "gimp" "ffmpeg" "imagemagick" "stapler" "tenacity"
          "git" "git:send-email" "git-lfs"
          "gnupg" "pinentry" "nss-certs" "oath-toolkit"
          "hackneyed-x11-cursors" "hicolor-icon-theme"
          "icecat" "w3m" "yt-dlp"
          "libreoffice" "python-ueberzug" "rxvt-unicode" "scrot"
          "nheko" "senpai" "weechat" "weechat-wee-slack"
          "ncdu" "ncurses" "stow" "units" "unrar-free" "unzip"
          "vim-jedi-vim" "vim-srcery-vim"
          "zathura" "zathura-djvu" "zathura-pdf-poppler"))))
  (services
    (list (service home-bash-service-type
                   (home-bash-configuration
                     (aliases '(("dict" . "dico")))
                     (bash-profile (list (local-file "bash-profile")))
                     (bashrc (list (local-file "bashrc")))))
          (simple-service
            'more-home-environment-variables-service
            home-environment-variables-service-type
            `(("SHELL" . #t)
              ("HISTCONTROL" . "ignoreboth:erasedups")
              ("HISTFILESIZE" . "-1")
              ("HISTSIZE" . "-1")
              ("PATH" . "$HOME/.local/bin:$PATH")
              ("GOPATH" . "$HOME/.local/share/go")
              ("NIX_PATH" . "$HOME/Sauces")
              ("EDITOR" . "vim")
              ("GPG_TTY" . "$(tty)")
              ("GTK_IM_MODULE" . "ibus")
              ("GUIX_GTK2_IM_MODULE_FILE" . "/run/current-system/profile/lib/gtk-2.0/2.10.0/immodules-gtk2.cache")
              ("GUIX_GTK3_IM_MODULE_FILE" . "/run/current-system/profile/lib/gtk-3.0/3.0.0/immodules-gtk3.cache")
              ("QT_IM_MODULE" . "ibus")
              ("XMODIFIERS" . "@im=ibus")
              ("XCURSOR_SIZE" . "28")
              ("XCURSOR_THEME" . "LHackneyed")))
          (service home-files-service-type
                   `((".dico" ,(local-file "dico"))
                     (".vim/vimrc" ,(local-file "vimrc"))
                     (".icons/default/index.theme" ,(local-file "cursor.ini"))))
          (service home-xdg-configuration-files-service-type
                   `(("gtk-3.0/settings.ini" ,(local-file "gtk3.ini"))))
          (service home-dbus-service-type)
          (service home-openssh-service-type
                   (home-openssh-configuration
                     (hosts (list (openssh-host (name "loang")
                                                (host-name "loang.net")
                                                (user "cnx")
                                                (port 2211))
                                  (openssh-host (name "super")
                                                (host-name "10.20.19.28")
                                                (user "phong")
                                                (port 4071))
                                  (openssh-host (name "rack")
                                                (host-name "10.20.18.56")
                                                (user "cnx")
                                                (port 4071))))
                     (authorized-keys (list (local-file "brno.pub")
                                            (local-file "cnx.pub")))
                     (add-keys-to-agent "yes")))
          (service home-gpg-agent-service-type
                   (home-gpg-agent-configuration
                     (pinentry-program
                       (file-append
                         (specification->package "pinentry-gtk2")
                         "/bin/pinentry-gtk-2"))
                     (ssh-support? #t))))))