summaryrefslogtreecommitdiff
path: root/abdul-blog/learning-guix-home.gmi
diff options
context:
space:
mode:
Diffstat (limited to 'abdul-blog/learning-guix-home.gmi')
-rw-r--r--abdul-blog/learning-guix-home.gmi49
1 files changed, 49 insertions, 0 deletions
diff --git a/abdul-blog/learning-guix-home.gmi b/abdul-blog/learning-guix-home.gmi
new file mode 100644
index 0000000..ca3c98c
--- /dev/null
+++ b/abdul-blog/learning-guix-home.gmi
@@ -0,0 +1,49 @@
+# Learning Guix Home
+
+Today I just learnt to use
+
+```
+guix home
+```
+
+command to reconfigure my home environment with functional package manager in Guix. I written this script on my UNIX Tilde account.
+
+```
+(use-modules ((gnu home) #:select (home-environment))
+ ((gnu home services) #:select
+ (home-files-service-type service))
+ ((gnu home services shells) #:select
+ (home-bash-configuration home-bash-service-type))
+ ((gnu system shadow) #:select (%default-dotguile))
+ ((guix gexp) #:select (file-append gexp local-file plain-file)))
+
+(home-environment
+ (services
+ (list
+ (service home-bash-service-type
+ (home-bash-configuration
+ (bash-profile (list (plain-file
+ "bash_ps1"
+ "export PS1=\"\nā†“ā† $PS1\nā†’ \"")))))
+
+ (service home-files-service-type
+ `((".guile" ,%default-dotguile))))))
+```
+
+I written it in home-config.scm and then I run
+
+```
+guix home reconfigure home-config.scm
+```
+
+Now I having better bash shell which taking less characters, so I can write more command in one line.
+## Mine currently working
+I am currently working to serving Minetest Server on Tilde Server. I installed it by
+
+```
+guix shell minetest
+```
+
+and I will to write about in mine next blog post.
+
+=> /~abdul/index.gmi back into blog index