-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathkitchensink.scm
More file actions
95 lines (92 loc) · 3.37 KB
/
kitchensink.scm
File metadata and controls
95 lines (92 loc) · 3.37 KB
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
;; This is an operating system configuration for Guix SD.
(use-modules (gnu)
(srfi srfi-1) ; for 'remove'
;; User Shell Location
(gnu packages shells)
;; Services
(gnu services sound)
(gnu services desktop) ; for 'elogind' TODO: can the
; scope be reduced on that?
(gnu services networking)
(gnu services pm) ; power management
(gnu services avahi)
(gnu services dbus)
(gnu system locale))
(operating-system
(locale "en_GB.utf8")
(timezone "America/Chicago")
(keyboard-layout
(keyboard-layout "us" "altgr-intl"))
(bootloader
(bootloader-configuration
(bootloader grub-bootloader)
(target "/dev/sda")
(keyboard-layout keyboard-layout)))
(swap-devices (list "/dev/sda2"))
(file-systems
(cons* (file-system
(mount-point "/")
(device (file-system-label "guix"))
(type "ext4"))
%base-file-systems))
(host-name "kitchensink")
(users (cons* (user-account
(name "udh")
(comment "unDeadHerbs")
(group "users")
(home-directory "/home/udh")
(supplementary-groups
'("wheel" "netdev" "audio" "video" "dialout"))
(shell #~(string-append #$zsh "/bin/zsh")))
%base-user-accounts))
(packages (cons*
;;; These are in long form to reduce `use-modules` lines.
;; System
(specification->package "bash")
(specification->package "nss")
(specification->package "nss-certs")
(specification->package "tlp")
(specification->package "tor")
(specification->package "wpa-supplicant")
(specification->package "zsh")
%base-packages))
(name-service-switch %mdns-host-lookup-nss)
(services
(append
(list
(service network-manager-service-type)
(service tor-service-type
(tor-configuration
(config-file
(plain-file "tor-config"
"HTTPTunnelPort 127.0.0.1:9250"))))
(service wpa-supplicant-service-type)
(service usb-modeswitch-service-type)
(service avahi-service-type)
(service dbus-root-service-type)
(service polkit-service-type)
(service elogind-service-type)
(service ntp-service-type)
(service alsa-service-type)
(service tlp-service-type
(tlp-configuration
(tlp-default-mode "BAT")))
(service thermald-service-type
(thermald-configuration
(ignore-cpuid-check? #t))))
(modify-services %base-services
(guix-service-type
config => (guix-configuration
(inherit config)
(substitute-urls
(list "https://bp7o7ckwlewr4slm.onion"))
(http-proxy "http://localhost:9250")))))))
;; TODO: Deduplicate the tor port.
;; TODO: Improve the `console-fonts` config from this
;; #<<service> type: #<service-type console-fonts 7f506f7ae690>
;; value: (("tty1" . "LatGrkCyr-8x16")
;; ("tty2" . "LatGrkCyr-8x16")
;; ("tty3" . "LatGrkCyr-8x16")
;; ("tty4" . "LatGrkCyr-8x16")
;; ("tty5" . "LatGrkCyr-8x16")
;; ("tty6" . "LatGrkCyr-8x16"))>