-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathconfig.lisp
180 lines (180 loc) · 6.5 KB
/
config.lisp
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
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
(
(
(:debian :apt :flatpak :snap)
(:pop :apt :flatpak :snap)
(:fedora :dnf :flatpak :snap)
(:arch :pacman :paru :flatpak :snap)
(:void :xbps :flatpak)
(:mac :brew :cask)
)
(
(
"Add 32-bit support for Debian"
nil
(:debian ("sudo dpkg --add-architecture i386"))
)
(
"Install Fusion repos for Fedora"
nil
(:fedora ("sudo dnf install -y https://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm https://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm"))
)
(
"Install Arch Linux keyring"
nil
(:arch ("sudo pacman -S archlinux-keyring --noconfirm"))
)
(
"Add non-free and multilib repos for Void"
nil
(:void ("sudo xbps-install -Syu xbps"
"sudo xbps-install -Sy void-repo-nonfree void-repo-multilib void-repo-multilib-nonfree"))
)
(
"Update all packages"
nil
(:debian ("sudo apt update -y"
"sudo apt upgrade -y"))
(:pop ("sudo apt update -y"
"sudo apt upgrade -y"))
(:fedora ("sudo dnf update -y"))
(:arch ("sudo pacman -Syu --noconfirm"))
(:void ("sudo xbps-install -Syu"))
)
(
"Install paru for AUR packages"
nil
(:arch ("sudo pacman -S git --noconfirm"
"mkdir temp"
"git clone https://aur.archlinux.org/paru.git ./temp/paru"
"cd ./temp/paru"
"makepkg -si --noconfirm"
"cd ../../"
"rm -rf ./temp"))
)
(
"Install Home Brew for macOS"
nil
(:mac ("/bin/bash -c \"$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)\""))
)
(
"Tap homebrew/cask-fonts for macOS"
nil
(:mac ("brew tap homebrew/cask-fonts"))
)
(
"Install svn as a dependency for few packages"
nil
(:mac ("brew install svn"))
)
(
"Install flatpak"
t
(:debian ("sudo apt install flatpak -y"
"sudo flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo"))
(:pop ("sudo apt install flatpak -y"
"sudo flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo"))
(:fedora ("sudo dnf install flatpak -y"
"sudo flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo"))
(:arch ("sudo pacman -S flatpak --noconfirm"
"sudo flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo"))
(:void ("sudo xbps-install -Sy flatpak"
"sudo flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo"))
)
(
"Install snapd"
t
(:debian ("sudo apt install snapd -y"
"sudo snap install core"))
(:pop ("sudo apt install snapd -y"
"sudo snap install core"))
(:fedora ("sudo dnf install snapd -y"
"sudo snap install core"))
(:arch ("sudo pacman -S snapd --noconfirm"
"sudo snap install core"))
)
)
(
(:apt (lambda (entries)
(concatenate 'string
"sudo apt install -y "
(reduce (lambda (a p)
(concatenate 'string
a
" "
p))
entries
:initial-value ""))))
(:dnf (lambda (entries)
(concatenate 'string
"sudo dnf install -y "
(reduce (lambda (a p)
(concatenate 'string
a
" "
p))
entries
:initial-value ""))))
(:pacman (lambda (entries)
(concatenate 'string
"sudo pacman -S --noconfirm "
(reduce (lambda (a p)
(concatenate 'string
a
" "
p))
entries
:initial-value ""))))
(:paru (lambda (entries)
(concatenate 'string
"paru -S --noconfirm "
(reduce (lambda (a p)
(concatenate 'string
a
" "
p))
entries
:initial-value ""))))
(:xbps (lambda (entries)
(concatenate 'string
"sudo xbps-install -Sy "
(reduce (lambda (a p)
(concatenate 'string
a
" "
p))
entries
:initial-value ""))))
(:flatpak (lambda (entries)
(mapcar (lambda (p)
(concatenate 'string
"flatpak install -y "
(first p)))
entries)))
(:snap (lambda (entries)
(mapcar (lambda (p)
(concatenate 'string
"snap install -y "
p))
entries)))
(:brew (lambda (entries)
(concatenate 'string
"brew install "
(reduce (lambda (a p)
(concatenate 'string
a
" "
p))
entries
:initial-value ""))))
(:cask (lambda (entries)
(concatenate 'string
"brew install --cask "
(reduce (lambda (a p)
(concatenate 'string
a
" "
p)
entries)
:initial-value ""))))
)
)