-
Notifications
You must be signed in to change notification settings - Fork 1
/
lemote.scm
114 lines (98 loc) · 4.12 KB
/
lemote.scm
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
(define-module (lemote))
(use-modules (guix packages)
(gnu)
(gnu system locale)
(config filesystems)
(config guix-daemon)
(srfi srfi-1))
(use-service-modules
linux
;mcron
networking
ssh)
(use-package-modules
connman
linux)
(operating-system
(host-name "lemote")
(timezone "Asia/Jerusalem")
(locale "en_US.UTF-8")
(locale-definitions
(list (locale-definition (source "en_US")
(name "en_US.UTF-8"))
(locale-definition (source "he_IL")
(name "he_IL.UTF-8"))))
(bootloader (bootloader-configuration
(bootloader grub-bootloader)
(targets '("/dev/sda"))))
(firmware '())
(initrd-modules '())
(kernel linux-libre-mips64el-fuloong2e)
(file-systems (cons* (file-system
(device (file-system-label "root"))
(mount-point "/")
(type "ext4"))
(file-system
(device (file-system-label "boot"))
(mount-point "/boot")
(type "ext2"))
%guix-temproots
%base-file-systems))
(users (cons (user-account
(name "efraim")
(comment "Efraim")
(group "users")
(supplementary-groups '("wheel"
"netdev" "kvm"))
(home-directory "/home/efraim"))
%base-user-accounts))
;; This is where we specify system-wide packages.
(packages (cons* ;btrfs-progs compsize
%base-packages))
(services (cons* ;(service agetty-service-type
; (agetty-configuration
; (extra-options '("-L")) ; no carrier detect
; (baud-rate "115200")
; (term "vt100")
; (tty "ttyS0")))
(service guix-publish-service-type
(guix-publish-configuration
(host "0.0.0.0")
(port 3000)))
(service openssh-service-type
(openssh-configuration
(x11-forwarding? #t)
(extra-content "StreamLocalBindUnlink yes")))
;(service tor-service-type)
;(tor-hidden-service "ssh"
; '((22 "127.0.0.1:22")))
;(tor-hidden-service "guix-publish"
; '((3000 "127.0.0.1:3000")))
;; Image created with ext4
;(service mcron-service-type
; (mcron-configuration
; (jobs (%btrfs-maintenance-jobs "/"))))
;(service openntpd-service-type
; (openntpd-configuration
; (listen-on '("127.0.0.1" "::1"))
; (allow-large-adjustment? #t)))
;; elogind cannot be cross compiled
;(service connman-service-type)
;(service wpa-supplicant-service-type)
;; Not supported by the chosen kernel
;(service zram-device-service-type
; (zram-device-configuration
; (size (* 2 (expt 2 30)))
; (compression-algorithm 'zstd)
; (priority 100)))
(modify-services
%base-services
(guix-service-type
config =>
(guix-configuration
(inherit config)
(substitute-urls %substitute-urls)
(authorized-keys %authorized-keys)
(extra-options %extra-options))))))
;; Allow resolution of '.local' host names with mDNS.
(name-service-switch %mdns-host-lookup-nss))