aboutsummaryrefslogtreecommitdiffstats
path: root/rincewind.org
blob: dc841867ea6b8c9d8e27dedd7a3c2658cbc465e9 (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
* PC Speaker

Disable the PC Speaker because I get annoyed at it beeping at me all the time.

#+begin_src conf :tangle "/sudo::/etc/modprobe.d/nobeep.conf"
  blacklist pcspkr
#+end_src

* mkinitcpio

Enable the =amdgpu= module because I have an AMD video card.

#+begin_src sh :tangle "/sudo::/etc/mkinitcpio.conf.d/amdgpu.conf"
  MODULES=(amdgpu)
#+end_src

Set up the hooks loaded into the image. Use =mkinitcpio -H <MODULE>= to find out what a module does.

- =base= :: Crucial runtime necessities for booting. Should always be included.
- =udev= :: Adds the udev daemon to the initramfs to allow dynamic loading of modules and reliable detection of the root device via UUID.
- =autodetect= :: ???
- =microcode= :: ???
- =modconf= :: ???
- =kms= :: ???
- =keyboard= :: ???
- =keymap= :: ???
- =consolefont= :: ???
- =block= :: ???
- =encrypt= :: Decrypt encrypted root drive.
- =filesystems= :: ???
- =fsck= :: ???

#+begin_src sh :tangle "/sudo::/etc/mkinitcpio.conf.d/hooks.conf"
  HOOKS=(base udev autodetect microcode modconf kms keyboard keymap consolefont block encrypt filesystems fsck)
#+end_src

* Pacman

For this configuration to work there needs to be a small change made to the base =/etc/pacman.conf=. We need to add =Include = /etc/pacman.d/conf/*.conf= under the =[options]= section.

# This could be added by a script with grep + sed, for future reference.

Download several packages in parallel.

#+begin_src conf-unix :tangle "/sudo::/etc/pacman.d/conf/parallel.conf" :mkdirp t
  ParallelDownloads = 5
#+end_src

Show a pacman-like animation as the progress bar. Just for funsies.

#+begin_src conf-unix :tangle "/sudo::/etc/pacman.d/conf/candy.conf" :mkdirp t
  ILoveCandy
#+end_src