dotfiles/provision/additional-setup.md

96 lines
3.0 KiB
Markdown
Raw Normal View History

2023-07-23 14:34:39 -07:00
# Additional Setup
The following documents some NixOS setup that wasn't automated.
2024-01-14 23:25:30 -08:00
## Encryption Keys
### Github SSH
Keys for SSH aren't automatically placed with chezmoi `secret` since it complicated
things to much. The key for github SSH must be transferred manually from Bitwarden
2024-05-21 21:53:08 -07:00
or:
- `/run/secrets/keys/github_personal` to `~/.ssh/keys/github_personal`.
- `/run/secrets/radicale/users` to `~/.config/radicale/users`.
2024-01-14 23:25:30 -08:00
2024-05-04 17:50:03 -07:00
### NIPR email, Teams, etc.
2024-05-04 18:14:17 -07:00
- Run `pcscan` and make sure card reader shows up.
- Run `pkcs11-register` to register cac.
- Download certs (i.e. unclass-certificates_pkcs7_DoD.zip) and import into Firefox.
- Use below links:
2024-05-04 17:50:03 -07:00
[Teams](https://dod.teams.microsoft.us)
[Outlook](https://webmail.apps.mil/owa)
[OneDrive](https://usaf-my.dps.mil)
2023-09-03 12:04:58 -07:00
## Wireguard Client
2023-07-23 14:34:39 -07:00
2023-10-08 21:45:28 -07:00
Wireguard is nice for a home vpn. NixOS setus up all of the configurations for
peers automatically on `torus`. Public keys, private keys, and config files are
generated and stored in `~/.wireguard`. Some machines like `kestrel` setup the
vpn automatically within `configuration.nix`. However, others require a small
amount of manual setup.
Cell phones like `adjudicator` are added with a generated QR code:
2023-07-23 14:34:39 -07:00
```bash
2023-10-08 21:45:28 -07:00
qrencode -t ansiutf8 < <conf file>
```
Computers using NetworkManager like `bulwark` need to have conf file imported:
```bash
nmcli connection import type wireguard file <conf file>
2023-07-23 14:34:39 -07:00
```
2023-09-03 12:04:58 -07:00
## Mount network drives
2023-07-23 14:34:39 -07:00
2023-10-08 21:45:28 -07:00
I find fstab messing about more trobule than it is worth. Credentials need to be
manually created in `~/.smb`. To mount network drives when needed with the
following command:
2023-07-23 14:34:39 -07:00
```bash
linux-mount-<network drive name>
```
2023-09-03 12:04:58 -07:00
## Git-annex
2023-07-23 14:34:39 -07:00
2023-09-03 12:04:58 -07:00
I use [git-annex](https://git-annex.branchable.com/walkthrough/) to sync some
of the large files (mostly roms) that I don't want to have fill copies on each
2023-10-08 21:45:28 -07:00
machine. Current git-annex stores I have are:
- `roms` - `~/mnt/engi/media/roms` from `torus`.
2024-04-21 19:28:30 -07:00
## Chrome
2024-04-21 19:28:30 -07:00
The vast majority of Chrome is setup with [browser.nix](./modules/desktop/browser.nix)
including installing plugins and various settings. However, setup for [vimium](https://chromewebstore.google.com/detail/vimium/dbepggeogbaibhgnhhndojpepiihcmeb)
and [New Tab Redirect](https://chromewebstore.google.com/detail/new-tab-redirect/icpgjfneehieebagbmdbhnlpiopdcmna)
could not be fully automated.
- Upon launch New Tab Redirect should prompt to set the new tab page.
2023-12-02 17:30:21 -08:00
Set to `http://localhost:8080`.
- Vimium config is saved in chezmoi. Open the vimium [plugin page](chrome-extension://dbepggeogbaibhgnhhndojpepiihcmeb/pages/options.html)
and restore config from `~/.config/vimium-options.json`.
2024-01-21 20:04:44 -08:00
2024-04-21 19:28:30 -07:00
- Pin and re-arrange plugins as desired.
2024-03-10 21:16:28 -07:00
## Obsidian Vault on New machine
Clone `vulcan` vault from personal github.
```bash
git clone https://<user>:<token>@git.tstarr.us/tstarr/vulcan.git
```
Copy another `.obsidian` folder for the new host (i.e. `.obsidian-<host>`).
Open vault folder in obsidian and change the `.obsidian` folder in settings.
2024-03-10 21:47:40 -07:00
## Wifi on Shivan
Connect to wifi network with: `nmcli device wifi connect <SSID> password <password>`.