blob: 5bc018f39b1b269f85299ce7e409bfeebba51619 (
about) (
plain)
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
|
(define-module (suweren home)
#:use-module ((gnu home services shells)
#:prefix gnu:home:services:shells:)
;; easyeffects
#:use-module (gnu packages audio)
;; font-google-noto
;; font-google-noto-emoji
;; font-google-noto-sans-cjk
;; font-google-noto-serif-cjk
#:use-module (gnu packages fonts)
;; kded
#:use-module (gnu packages kde-frameworks)
;; home-profile-service-type
#:use-module (gnu home services)
;; home-dbus-service-type
#:use-module (gnu home services desktop)
;; home-bash-service-type
#:use-module (gnu home services shells)
;; home-shepherd-service-type
#:use-module (gnu home services shepherd)
;; home-pipewire-service-type
#:use-module (gnu home services sound)
;; gnupg
;; pinentry-qt
;; pinentry-tty
#:use-module (gnu packages gnupg)
;; kde-gtk-config
#:use-module (gnu packages kde-plasma)
;; librewolf
#:use-module (gnu packages librewolf)
;; service
;; simple-service
#:use-module (gnu services)
#:use-module ((guix gexp)
#:prefix guix:gexp:)
;; suweren-home-fontconfig-service-type
#:use-module (suweren home services fontutils)
;; update-commands
#:use-module (suweren update))
(define bash-prompt-configuration-core
" PS1='\\n\\n\\t $?\\n\\u@\\H \\w\\n\\! ")
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
(define bash-prompt-configuration
(guix:gexp:mixed-text-file "bash-prompt"
"\n"
"if [ -n \"$GUIX_ENVIRONMENT\" ] \n"
"then\n"
bash-prompt-configuration-core
"[env] \\$ '\n"
"else\n"
bash-prompt-configuration-core
"\\$ '\n"
"fi"))
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
(define-public (%suweren-home-services host-name*)
(let* ((packages (list easyeffects
font-google-noto
font-google-noto-emoji
font-google-noto-sans-cjk
font-google-noto-serif-cjk
font-hack
gnupg
kde-gtk-config
kded
librewolf
pinentry-qt
pinentry-tty))
(dbus (service home-dbus-service-type))
(pipewire (service home-pipewire-service-type))
(profile (simple-service 'default-home-packages
home-profile-service-type
packages))
(shepherd (service home-shepherd-service-type))
(update-commands* (update-commands host-name*)))
(list dbus
pipewire
profile
shepherd
suweren-home-fontconfig-service-type
update-commands*
(simple-service
'environment-variables
home-environment-variables-service-type
`(("EDITOR" . "emacs")))
(simple-service
'bash-aliases
home-bash-service-type
(home-bash-extension
(aliases
`(("edit" . "$EDITOR")))))
(simple-service
'bash-prompt
gnu:home:services:shells:home-bash-service-type
(gnu:home:services:shells:home-bash-extension
(bash-profile
(list bash-prompt-configuration))
(bashrc
(list bash-prompt-configuration)))))))
|