dotfiles/provision/additional-setup.md

82 lines
2.3 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.
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>
```
## Syncthing
2023-10-08 21:45:28 -07:00
Syncthing is used to sync folders between various computers. The service is
automatically installed and started with NixOS, but shares currently must be
setup with the web gui.
2023-07-23 14:34:39 -07:00
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`.
## Cadquery and Simplify3d
Cadquery and Simplify3d don't play nice with non-FHS filesystems (and Simplify3d
is proprietary). I run these programs within distrobox. Some notes about using
distrobox for these programs.
If arch-box isn't created, create it and apply chezmoi dot files to secondary
home directory:
```bash
distrobox create --image archlinux --name arch-box --home ~/box/arch
chezmoi apply -D ~/home/arch
```
Then enter the box and run script to install cadquery and dependencies for
Simplify3d:
```bash
distrobox enter arch-box
cd && ./bin/arch-install-cad
```
As the script suggest then download and install Simplify3d from the script on the
[website](https://www.simplify3d.com/).
The applications can be run within the box with the following commands:
```bash
# Simplify3d
/opt/Simplify3D-5.1.2/LaunchScript.sh
# CQ-editor
cd ~/cq-editor && ./run.sh
```