diff options
author | W. Kosior <koszko@koszko.org> | 2024-05-27 12:19:19 +0200 |
---|---|---|
committer | W. Kosior <koszko@koszko.org> | 2024-05-27 12:29:59 +0200 |
commit | ee8fac8ab8529e2d105c7e55c2c9b28aefd19b46 (patch) | |
tree | 7f7559d0ba91710624eb2c76a9765587595d8153 /abdul-blog/learning-guix-home.gmi | |
parent | 2d05ae83321cdf8aa3abab6acdd69f331ef4b89a (diff) | |
download | AGH-ctf-course-2024-ee8fac8ab8529e2d105c7e55c2c9b28aefd19b46.tar.gz AGH-ctf-course-2024-ee8fac8ab8529e2d105c7e55c2c9b28aefd19b46.zip |
Diffstat (limited to 'abdul-blog/learning-guix-home.gmi')
-rw-r--r-- | abdul-blog/learning-guix-home.gmi | 49 |
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 |