blob: cb57af5efcf93023d26f937aef673ee8642216e1 (
plain) (
blame)
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
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
|
(use-modules
(curth0) ;; FIXME: properly install this
(ice-9 rdelim)
(gnu bootloader)
(gnu bootloader grub)
(gnu packages)
(gnu packages wm)
(gnu services base)
(gnu services cups)
(gnu services desktop)
(gnu services security-token)
(gnu services virtualization)
(gnu services xorg)
(gnu system keyboard)
(gnu system file-systems)
(gnu system mapped-devices)
(guix gexp)
(guix packages)
(guix utils)
(nongnu packages linux)
(nongnu system linux-initrd)
(srfi srfi-1))
(define backlight-device
(call-with-input-file
(string-append (getenv "XDG_CONFIG_HOME")
"/backlight-device")
read-line))
(operating-system
(kernel linux)
(initrd microcode-initrd)
(firmware (list linux-firmware))
(locale "fr_FR.UTF-8")
(timezone "America/Sao_Paulo")
(keyboard-layout
(keyboard-layout "br" #:options '("caps:swapescape" "esperanto:qwerty")))
(host-name "velhinho")
(users
(append
(let ((user-groups '("netdev" "audio" "video"))
(admin-groups '("wheel")))
(list
(user-account
(name "andreh")
(comment "EuAndreh")
(group "users")
(supplementary-groups (append admin-groups user-groups)))
(user-account
(name "other")
(comment "Other Self")
(group "users")
(supplementary-groups user-groups))))
%base-user-accounts))
(packages
(append
(map (compose list specification->package+output symbol->string)
'(nss-certs
i3-wm
xmonad-next))
(list)
(remove (lambda (package)
(equal? "wget" (package-name package)))
%base-packages)))
(services
(append
(list
(service bluetooth-service-type)
(service pcscd-service-type)
(service gnome-desktop-service-type)
(service libvirt-service-type)
(service virtlog-service-type)
(service cups-service-type
(cups-configuration
(web-interface? #t)))
#;
(udev-rules-service
'backlight
(udev-rule
"backlight.rule"
(string-replace
#"-
ACTION=="add", SUBSYSTEM=="backlight", KERNEL=="@DEVICE@", GROUP="video", MODE="0664"
"#
"@DEVICE@"
backlight-device)))
(set-xorg-configuration
(xorg-configuration
(keyboard-layout keyboard-layout)
(extra-config
(list
#"-
Section "InputClass"
Identifier "touchpad"
Driver "libinput"
MatchIsTouchpad "on"
Option "Tapping" "on"
EndSection
Section "Device"
Identifier "Intel Graphics"
Driver "intel"
Option "Backlight" "intel_backlight"
EndSection
"#)))))
(modify-services %desktop-services
(guix-service-type config =>
(guix-configuration
(inherit config)
(substitute-urls
(append
'("https://substitutes.nonguix.org")
%default-substitute-urls))
(authorized-keys
(append
(list
(plain-file
"non-guix.pub"
#"-
(public-key
(ecc
(curve Ed25519)
(q #C1FD53E5D4CE971933EC50C9F307AE2171A2D3B52C804642A7A35F84F3A4EA98#)))
"#))
%default-authorized-guix-keys)))))))
(bootloader
(bootloader-configuration
(bootloader grub-efi-bootloader)
(targets (list "/boot/efi"))
(keyboard-layout keyboard-layout)))
(mapped-devices
(list
(mapped-device
(source (uuid "6b0d38a6-d93e-4f8e-a59a-7729f5adf892"))
(target "cryptroot")
(type luks-device-mapping))))
(file-systems
(append
(list
(file-system
(mount-point "/boot/efi")
(device (uuid "1B26-9F4E" 'fat32))
(type "vfat"))
(file-system
(mount-point "/")
(device "/dev/mapper/cryptroot")
(type "ext4")
(dependencies mapped-devices)))
%base-file-systems)))
|