summary refs log tree commit diff
path: root/doc/he-config-bare-bones.scm
diff options
context:
space:
mode:
authorAndrew Tropin <andrew@trop.in>2021-09-01 11:47:04 +0300
committerOleg Pykhalov <go.wigust@gmail.com>2021-09-09 20:26:51 +0300
commitaaffa43c1752e062934580f55616e0380963a1be (patch)
tree2ce1060b0bab637178087186b03685329bd7e425 /doc/he-config-bare-bones.scm
parent5d4f39e64ab446f11d22721464c2dc418c0d9b98 (diff)
downloadguix-aaffa43c1752e062934580f55616e0380963a1be.tar.gz
doc: Add Guix Home documentation.
* doc/guix.texi: Add Guix Home documentation.
* doc/he-config-bare-bones.scm: New file.

Signed-off-by: Oleg Pykhalov <go.wigust@gmail.com>
Diffstat (limited to 'doc/he-config-bare-bones.scm')
-rw-r--r--doc/he-config-bare-bones.scm24
1 files changed, 24 insertions, 0 deletions
diff --git a/doc/he-config-bare-bones.scm b/doc/he-config-bare-bones.scm
new file mode 100644
index 0000000000..01be46a7b0
--- /dev/null
+++ b/doc/he-config-bare-bones.scm
@@ -0,0 +1,24 @@
+(use-modules (gnu home)
+             (gnu home-services)
+             (gnu home-services shells)
+             (gnu services)
+             (gnu packages admin)
+             (guix gexp))
+
+
+(home-environment
+ (packages (list htop))
+ (services
+  (list
+   (service home-bash-service-type
+            (home-bash-configuration
+             (guix-defaults? #t)
+             (bash-profile '("\
+export HISTFILE=$XDG_CACHE_HOME/.bash_history"))))
+
+   (simple-service 'test-config
+                   home-files-service-type
+                   (list `("config/test.conf"
+                           ,(plain-file "tmp-file.txt"
+                                        "the content of ~/.config/test.conf")))))))
+