source: dotfiles/guix/config-desktop.scm@ fde9de8

Last change on this file since fde9de8 was fde9de8, checked in by Mikhail Kirillov <w96k@…>, on Sep 3, 2024 at 10:43:11 PM

Update configs

  • Property mode set to 100644
File size: 4.9 KB
Line 
1(use-modules (gnu)
2 (guix transformations)
3 (gnu home)
4 (guix gexp)
5 (nongnu packages linux)
6 (nongnu system linux-initrd)
7 (gnu home services shells))
8
9(use-service-modules guix cups desktop networking ssh xorg docker nix admin vnc lightdm syncthing virtualization databases)
10(use-package-modules gnome xdisorg vnc databases)
11
12(load "/home/w96k/projects/dotfiles/guix/.dotfiles/home-configuration.scm")
13
14(define wkz-transform
15 ;; The package transformation procedure.
16 (options->transformation
17 '((tune . "skylake"))))
18
19(operating-system
20 (locale "en_US.utf8")
21 (timezone "Asia/Tbilisi")
22 (kernel linux)
23 (initrd microcode-initrd)
24 (firmware (list linux-firmware))
25 (keyboard-layout (keyboard-layout "us,ru"
26 #:options '("grp:shifts_toggle" "ctrl:nocaps")))
27 (host-name "wkz-guix")
28
29 ;; The list of user accounts ('root' is implicit).
30 (users (cons* (user-account
31 (name "w96k")
32 (comment "W96K")
33 (group "users")
34 (home-directory "/home/w96k")
35 (supplementary-groups '("wheel" "netdev" "audio" "video" "docker")))
36 (user-account
37 (name "wkz")
38 (comment "wkz")
39 (group "users")
40 (home-directory "/home/wkz")
41 (supplementary-groups '("wheel" "netdev" "audio" "video" "docker")))
42 %base-user-accounts))
43
44 ;; (packages %base-packages)
45 (packages
46 (append
47 (map
48 specification->package
49 '(
50 "ratpoison"
51 "xterm"
52 "screen"
53 ))
54 %base-packages))
55
56 ;; Below is the list of system services. To search for available
57 ;; services, run 'guix system search KEYWORD' in a terminal.
58 (services
59 (append (list
60 (service guix-home-service-type `(("w96k" ,wkz-home) ("wkz" ,wkz-home)))
61 (service block-facebook-hosts-service-type)
62
63 (service tor-service-type)
64 (service openssh-service-type)
65 (service containerd-service-type)
66 (service docker-service-type)
67 ;; (service hurd-vm-service-type
68 ;; (hurd-vm-configuration
69 ;; (disk-size (* 5000 (expt 2 20))) ;5G
70 ;; (memory-size 1024)))
71
72 (service nix-service-type (nix-configuration
73 (extra-options '("--extra-experimental-features nix-command"))))
74
75 (service xvnc-service-type (xvnc-configuration
76 (display-number 10)
77 (localhost? #f)
78 (geometry "1280x800")))
79
80 (service syncthing-service-type
81 (syncthing-configuration
82 (user "w96k")))
83
84 (service postgresql-service-type
85 (postgresql-configuration
86 (postgresql postgresql-15)))
87
88 (service connman-service-type)
89
90 ;; (service screen-locker-service-type
91 ;; (screen-locker-configuration
92 ;; (name "xlock")
93 ;; (program (file-append xlockmore "/bin/xlock"))))
94
95 ;; (service slim-service-type
96 ;; (slim-configuration
97 ;; (default-user "w96k")
98 ;; (xorg-configuration
99 ;; (xorg-configuration
100 ;; (keyboard-layout keyboard-layout)))))
101 )
102
103 (modify-services %desktop-services
104 (delete screen-locker-service-type)
105 (delete modem-manager-service-type)
106 (delete udisks-service-type)
107 (delete upower-service-type)
108 (delete network-manager-service-type)
109 (delete usb-modeswitch-service-type)
110 (delete geoclue-service-type)
111
112
113 (guix-service-type config => (guix-configuration
114 (inherit config)
115 (extra-options '("--max-jobs=10"))
116 (substitute-urls
117 (append (list "https://substitutes.nonguix.org")
118 %default-substitute-urls))
119 (authorized-keys
120 (append (list (plain-file "non-guix.pub"
121 "
122(public-key
123 (ecc
124 (curve Ed25519)
125 (q #C1FD53E5D4CE971933EC50C9F307AE2171A2D3B52C804642A7A35F84F3A4EA98#)
126 )
127 )
128"))
129 %default-authorized-guix-keys))))
130
131 (delete gdm-service-type))))
132
133 (bootloader (bootloader-configuration
134 (bootloader grub-efi-bootloader)
135 (targets (list "/boot/efi"))
136 (keyboard-layout keyboard-layout)))
137 (mapped-devices (list (mapped-device
138 (source (uuid
139 "6cfe9eed-8cdd-43da-9b9f-cec6f8ec538b"))
140 (target "cryptroot")
141 (type luks-device-mapping))))
142
143 (file-systems (cons* (file-system
144 (mount-point "/boot/efi")
145 (device (uuid "17C5-3E35"
146 'fat32))
147 (type "vfat"))
148 (file-system
149 (mount-point "/")
150 (device "/dev/mapper/cryptroot")
151 (type "ext4")
152 (options "discard")
153 (skip-check-if-clean? #f)
154 (repair #t)
155 (dependencies mapped-devices)) %base-file-systems)))
Note: See TracBrowser for help on using the repository browser.