summaryrefslogtreecommitdiff
path: root/gnu/system/examples
diff options
context:
space:
mode:
authorZheng Junjie <873216071@qq.com>2023-07-20 14:09:51 +0800
committer宋文武 <iyzsong@member.fsf.org>2023-08-03 17:38:10 +0800
commit5c688178130ff3da3463d087f74ad9bcc9b104ae (patch)
treeaa12e8ea5920ac3d34b2a5c9e47760dfea54f539 /gnu/system/examples
parent25522d52f13fd1814b4b9abbb21b8e3d418f5d0e (diff)
examples: Add plasma operating-system example template.
* gnu/system/examples/plasma.tmpl: New file. * Makefile.am (EXAMPLES): register it. Signed-off-by: 宋文武 <iyzsong@member.fsf.org>
Diffstat (limited to 'gnu/system/examples')
-rw-r--r--gnu/system/examples/plasma.tmpl67
1 files changed, 67 insertions, 0 deletions
diff --git a/gnu/system/examples/plasma.tmpl b/gnu/system/examples/plasma.tmpl
new file mode 100644
index 00000000000..3df819a54f7
--- /dev/null
+++ b/gnu/system/examples/plasma.tmpl
@@ -0,0 +1,67 @@
1;; This is an operating system configuration template
2;; for a "desktop" setup with Plasma.
3
4(use-modules (gnu) (gnu system nss))
5(use-service-modules desktop sddm xorg ssh)
6(use-package-modules certs gnome ssh admin fonts)
7(use-package-modules qt xorg tmux linux)
8
9(operating-system
10 (host-name "plasma")
11 (timezone "Asia/Shanghai")
12 (locale "en_US.utf8")
13
14 ;; Assuming /dev/sdX is the target hard disk, and "my-root"
15 ;; is the label of the target root file system.
16 (bootloader (bootloader-configuration
17 (bootloader grub-bootloader)
18 (targets (list "/dev/sdX"))))
19
20 (file-systems (cons (file-system
21 (device "my-root")
22 (mount-point "/")
23 (type "ext4"))
24 %base-file-systems))
25
26 (users (cons (user-account
27 (name "plasma")
28 (password (crypt "plasma" "$6$abc"))
29 (group "users")
30 (supplementary-groups '("wheel" "netdev"
31 "audio" "video")))
32 %base-user-accounts))
33
34 ;; This is where we specify system-wide packages.
35 (packages (cons* nss-certs ;for HTTPS access
36 neofetch
37 htop
38 tmux
39 xprop
40 strace
41 %base-packages))
42
43 (services (cons*
44 ;; for debug
45 ;; (simple-service
46 ;; 'add-qt-debug-env
47 ;; session-environment-service-type
48 ;; '(("QT_MESSAGE_PATTERN"
49 ;; . "[[%{time process} %{type}] %{appname}: %{category} %{function} - %{message}]")
50 ;; ("QT_DEBUG_PLUGINS" . "1")
51 ;; ("QML_IMPORT_TRACE" . "1")))
52 (service openssh-service-type
53 (openssh-configuration
54 (openssh openssh-sans-x)
55 (port-number 2222)))
56 (service plasma-desktop-service-type)
57 (service sddm-service-type
58 (sddm-configuration
59 (theme "breeze")))
60 (modify-services %desktop-services
61 (delete gdm-service-type))))
62 ;; Allow resolution of '.local' host names with mDNS.
63 (name-service-switch %mdns-host-lookup-nss))
64
65;; Local Variables:
66;; mode: scheme
67;; End: