]> git.ekhem.eu.org Git - guix.git/commitdiff
[home] Install `git`.
authorJakub Czajka <jakub@ekhem.eu.org>
Sat, 4 Jun 2022 19:47:22 +0000 (21:47 +0200)
committerJakub Czajka <jczajka@google.com>
Sun, 24 Dec 2023 18:53:07 +0000 (19:53 +0100)
This commit adds a guix-home service which installs `git` and its
dotfile. See git(1) for explaination of the dotfile structure and its
location.

git/.config/git/config [new file with mode: 0644]
home.scm

diff --git a/git/.config/git/config b/git/.config/git/config
new file mode 100644 (file)
index 0000000..aab2cb2
--- /dev/null
@@ -0,0 +1,6 @@
+# Copyright (c) 2022 Jakub Czajka <jakub@ekhem.eu.org>
+# License: GPL-3.0 or later.
+
+[user]
+       name = Jakub Czajka
+       email = jakub@ekhem.eu.org
index b271bb6422d44da1ae354ab9f62145a980236741..5912410bc1cf3306df8d17441e56d9669621ca2e 100644 (file)
--- a/home.scm
+++ b/home.scm
@@ -4,10 +4,13 @@
 ;; home.scm - home directory configuration for GNU Guix.
 
 (use-modules (conf home bash)
+            (conf home program)
             (conf home symlink)
              (gnu home services)
             (gnu packages base)
-            (guix gexp))
+            (gnu packages version-control)
+            (guix gexp)
+            (guix packages))
 
 (home-environment
  (packages (list))
@@ -17,4 +20,8 @@
                  (bash-profile "bash/.bash_profile")
                  (bashrc "bash/.bashrc")))
        (service home-symlink-service-type
-                (list "bash/.config/profile.d/10-xdg.sh")))))
+                (list "bash/.config/profile.d/10-xdg.sh"))
+       (service home-program-service-type
+                (home-program-configuration
+                 (packages (list git))
+                 (dotfiles (list "git/.config/git/config")))))))