home-manager/README.md

57 lines
1.3 KiB
Markdown

# Home Manager Config
## Laptop
Specific instructions for the `Lenovo Thinkpad Yoga C13 (Morphius)`
Install Mr.Chromebox's [Firmware Utility Script](https://mrchromebox.tech/#fwscript).
Download [Fedora Workstation](https://www.fedoraproject.org/en/workstation/download).
Boot the Live USB in `minimal graphics mode`.
Install like usual but before restarting do edit the machine's kernel boot params like so:
```txt
sudo nano /mnt/sysroot/etc/default/grub
```
Add `iommu=pt` to `GRUB_CMDLINE_LINUX`.
Example:
```txt
GRUB_CMDLINE_LINUX="rd.luks.uuid=luks-6ee676a5-8f57-4400-bde6-2f5ff7c1260d nomodeset rhgb iommu=pt quiet"
```
Disable SELinux, as Nix does not work with it enabled
```txt
sudo nano /etc/selinux/config
```
and change `SELINUX=enforcing` to `SELINUX=permissive`
Resize the `/tmp` directory to allow for building large packages like `nerdfonts`
```txt
mount -o remount,size=25G /tmp
systemctl daemon-reload
```
Download the current home-manager config from <https://git.krsnik.at/Kristian/home-manager>.
```txt
cd home-manager
nix shell nixpkgs#home-manager --extra-experimental-features "nix-command flakes"
home-manager switch --flake .#laptop --extra-experimental-features "nix-command flakes"
```
Configure the following:
* synthing
* gpg
In case ssh does not work work do
```txt
gpgconf --kill gpg-agent
```