summaryrefslogtreecommitdiff
path: root/abdul-blog/learning-guix-home.html
diff options
context:
space:
mode:
authorW. Kosior <koszko@koszko.org>2024-05-27 12:19:19 +0200
committerW. Kosior <koszko@koszko.org>2024-05-27 12:29:59 +0200
commitee8fac8ab8529e2d105c7e55c2c9b28aefd19b46 (patch)
tree7f7559d0ba91710624eb2c76a9765587595d8153 /abdul-blog/learning-guix-home.html
parent2d05ae83321cdf8aa3abab6acdd69f331ef4b89a (diff)
downloadAGH-ctf-course-2024-magister.tar.gz
AGH-ctf-course-2024-magister.zip
Update and add remaining files.HEADmagister
Diffstat (limited to 'abdul-blog/learning-guix-home.html')
-rw-r--r--abdul-blog/learning-guix-home.html49
1 files changed, 49 insertions, 0 deletions
diff --git a/abdul-blog/learning-guix-home.html b/abdul-blog/learning-guix-home.html
new file mode 100644
index 0000000..42dcf9d
--- /dev/null
+++ b/abdul-blog/learning-guix-home.html
@@ -0,0 +1,49 @@
+
+<head>
+ <style>
+ html {
+ font-size: 16px;
+ line-height: 1.6;
+ color: #1E4147;
+ background-color: #AAC789;
+ --width: calc(100vw - 20px);
+ --height: calc(100vh - 20px);
+ width: var(--width);
+ height: var(--height);
+ border: #8A8A69 solid 10px;
+ overflow-y: hidden;
+ }
+
+ body {
+ margin: 0 auto;
+ max-width: var(--width);
+ max-height: var(--height);
+ overflow-y: scroll;
+ }
+
+ main {
+ max-width: 920px;
+ padding: 1rem 2rem;
+ }
+
+ pre {
+ background-color: #eee;
+ margin: 0 -1rem;
+ padding: 1rem;
+ overflow-x: auto;
+ }
+
+ a {
+ color: #AA2E00;
+ }
+
+ a:visited {
+ color: #802200;
+ }
+ </style>
+</head>
+<body>
+ <main>
+<h1>Learning Guix Home</h1><p>Today I just learnt to use</p><pre>guix home</pre><p>command to reconfigure my home environment with functional package manager in Guix. I written this script on my UNIX Tilde account.</p><pre>(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))))))</pre><p>I written it in home-config.scm and then I run</p><pre>guix home reconfigure home-config.scm</pre><p>Now I having better bash shell which taking less characters, so I can write more command in one line.</p><h2>Mine currently working</h2><p>I am currently working to serving Minetest Server on Tilde Server. I installed it by</p><pre>guix shell minetest</pre><p>and I will to write about in mine next blog post.</p><p><a href='/~abdul/index.html'>back into blog index</a></p>
+ </main>
+</body>