summaryrefslogtreecommitdiff
path: root/abdul-blog/learning-guix-home.html
blob: 42dcf9d82d2113a5f5a57c807dbfb4ed528b47ad (about) (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
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>