-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsystem.scm
103 lines (93 loc) · 3.87 KB
/
system.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
(use-modules (gnu)
(gnu services desktop)
(gnu services pm)
(gnu services databases)
(gnu services sound)
(nongnu packages linux)
(nongnu system linux-initrd))
(use-service-modules cups desktop networking ssh xorg)
(use-package-modules security-token)
(define add-click-finger-click-method
"Section \"InputClass\"
Identifier \"Touchpads\"
MatchIsTouchpad \"on\"
Driver \"libinput\"
Option \"ClickMethod\" \"clickfinger\"
EndSection")
(operating-system
(kernel linux)
(initrd microcode-initrd)
(firmware (list sof-firmware linux-firmware))
(locale "en_CA.utf8")
(timezone "America/Vancouver")
(keyboard-layout (keyboard-layout "us"))
(host-name "snass")
(users (cons* (user-account
(name "rfb")
(comment "Ryan Barber")
(group "users")
(home-directory "/home/rfb")
(supplementary-groups '("wheel"
"netdev"
"audio"
"plugdev"
"video")))
%base-user-accounts))
(packages (append (specifications->packages (list "awesome"
"nss-certs"
"tlp"
"pulseaudio"
"xinput"
"libinput"))
%base-packages))
(services
(cons*
(service openssh-service-type)
(service postgresql-service-type
(postgresql-configuration
(postgresql (specification->package "[email protected]"))))
(set-xorg-configuration
(xorg-configuration
(keyboard-layout keyboard-layout)
(extra-config
(list add-click-finger-click-method))))
(udev-rules-service 'fido2 libfido2 #:groups '("plugdev"))
(service tlp-service-type
(tlp-configuration
(energy-perf-policy-on-ac "powersave")
(cpu-scaling-governor-on-ac (list "powersave"))
(cpu-scaling-governor-on-bat (list "powersave"))))
(service thermald-service-type)
(modify-services
%desktop-services
(elogind-service-type
config => (elogind-configuration
(suspend-mode (list "deep"))))
(guix-service-type
config => (guix-configuration
(inherit config)
(substitute-urls
(append (list "https://substitutes.nonguix.org")
%default-substitute-urls))
(authorized-keys
(append (list (local-file "./nonguix-signing-key.pub"))
%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
"9a10974b-fa2c-423c-b0dd-96d95a55dd9e"))
(target "cryptroot")
(type luks-device-mapping))))
(file-systems (cons* (file-system
(mount-point "/boot/efi")
(device (uuid "1D86-2E71"
'fat32))
(type "vfat"))
(file-system
(mount-point "/")
(device "/dev/mapper/cryptroot")
(type "ext4")
(dependencies mapped-devices)) %base-file-systems)))