This guide is written for Arch Linux.
systemd
version 248 or newer- Use
mkinitcpio
for initramfs generation
These are working notes on the installation of Arch Linux. I've just completed this install on a notebook (@altercation: Lenovo P50. @craSH: Dell XPS 13" 9380) but the setup should work for most laptop/desktop configurations.
Some assumptions/notes:
#!/usr/bin/env bash | |
# NixOS-only cargo wrapper that: | |
# - always uses mold for linking. | |
# - sets `-C target-cpu=haswell` to avoid generating code for pre-2013 CPUs. | |
# - sets `-C link-arg=-Wl,--compress-debug-sections=zlib-gabi` to compress debug sections. | |
# - sets LIBCLANG_PATH for projects that need clang. | |
# - sets `-Z share-generics` to reduce output binary sizes by ~2MB. | |
# - turns on cargo's sparse-registry feature. | |
# - increases niceness slightly with `nice -n 2` . |
;;; Startup | |
;;; PACKAGE LIST | |
(setq package-archives | |
'(("melpa" . "https://melpa.org/packages/") | |
("elpa" . "https://elpa.gnu.org/packages/"))) | |
;;; BOOTSTRAP USE-PACKAGE | |
(package-initialize) | |
(setq use-package-always-ensure t) | |
(unless (package-installed-p 'use-package) |