about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--guix/dico1
-rw-r--r--guix/home.scm34
-rwxr-xr-xguix/sxrc5
-rw-r--r--guix/system.scm3
4 files changed, 31 insertions, 12 deletions
diff --git a/guix/dico b/guix/dico
new file mode 100644
index 0000000..7bdddfd
--- /dev/null
+++ b/guix/dico
@@ -0,0 +1 @@
+open localhost
diff --git a/guix/home.scm b/guix/home.scm
index c0bc345..df3ab72 100644
--- a/guix/home.scm
+++ b/guix/home.scm
@@ -1,6 +1,7 @@
 (use-modules (gnu home)
              (gnu home services)
              (gnu home services desktop)
+             (gnu home services gnupg)
              (gnu home services mcron)
              (gnu home services shells)
              (gnu home services ssh)
@@ -25,12 +26,12 @@
           "audacious" "ffmpeg" "mediainfo" "mpv" "simplescreenrecorder"
           "awesome" "copyq" "dbus" "keynav" "scrot" "sx" "xdg-utils" "xrdb"
           "bastet" "extremetuxracer" "gnujump" "hedgewars" "kiki" "neverball"
+          "dico" "icecat" "liferea" "w3m" "yt-dlp"
           "font-google-noto" "font-latin-modern" "hicolor-icon-theme" "qt5ct"
           "gcc-toolchain" "python" "texlive" "zig"
           "gimp" "imv" "imagemagick" "zathura" "zathura-pdf-poppler"
           "git" "git:send-email" "git-lfs"
           "gnupg" "pinentry" "nss-certs" "oath-toolkit"
-          "icecat" "liferea" "w3m" "yt-dlp"
           "ncdu" "ncurses" "stow" "units" "unzip"
           "pavucontrol" "playerctl" "pulsemixer"))))
   (services
@@ -56,19 +57,30 @@
               ("XMODIFIERS" . "@im=ibus")
               ("QT_IM_MODULE" . "ibus")
               ("QT_QPA_PLATFORMTHEME" . "qt5ct")))
+          (service home-files-service-type
+                   `((".dico" ,(local-file "dico"))))
+          (service home-xdg-configuration-files-service-type
+                   `(("sx/sxrc" ,(local-file "sxrc"))))
           (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 "rack")
-                                         (host-name "10.20.18.56")
-                                         (user "cnx")
-                                         (port 4071))))
-                    (authorized-keys (list (local-file "cnx.pub")))))
+                     (hosts (list (openssh-host (name "loang")
+                                                (host-name "loang.net")
+                                                (user "cnx")
+                                                (port 2211))
+                                  (openssh-host (name "rack")
+                                                (host-name "10.20.18.56")
+                                                (user "cnx")
+                                                (port 4071))))
+                     (authorized-keys (list (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)))
           (service home-mcron-service-type
                    (home-mcron-configuration
                      (jobs (list #~(job '(next-minute (range 0 60 1))
diff --git a/guix/sxrc b/guix/sxrc
new file mode 100755
index 0000000..4cab300
--- /dev/null
+++ b/guix/sxrc
@@ -0,0 +1,5 @@
+#!/bin/sh
+copyq &
+keynav &
+ibus-daemon -drx
+exec dbus-run-session -- awesome
diff --git a/guix/system.scm b/guix/system.scm
index f8c329d..8d280c0 100644
--- a/guix/system.scm
+++ b/guix/system.scm
@@ -3,7 +3,7 @@
 
 (use-modules (gnu)
              (gnu system setuid))
-(use-service-modules avahi desktop dns networking nix sound ssh xorg)
+(use-service-modules avahi desktop dict dns networking nix sound ssh xorg)
 
 (operating-system
   (locale "en_DK.utf8")
@@ -67,6 +67,7 @@
            (service x11-socket-directory-service-type)
            (service pulseaudio-service-type)
            (service alsa-service-type)
+           (service dicod-service-type)
            (service nix-service-type)
            %base-services))
   (kernel-arguments (cons "modprobe.blacklist=pcspkr"