2026-05-28 22:58:50 -08:00
|
|
|
## Applying changes
|
|
|
|
|
|
|
|
|
|
### NixOS server
|
|
|
|
|
|
|
|
|
|
```sh
|
|
|
|
|
./apply.sh
|
|
|
|
|
# or manually:
|
|
|
|
|
nixos-rebuild switch --flake /root/petersweb-infra/nixos#mainframe
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
### Linux desktop / laptop or Mac
|
|
|
|
|
|
|
|
|
|
Clone this repo, then set up once per machine:
|
|
|
|
|
|
|
|
|
|
**Git aliases** (`git co` etc.):
|
|
|
|
|
```sh
|
|
|
|
|
git config --global include.path ~/path/to/petersweb-infra/nixos/gitconfig
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
**Zsh aliases** (`gco`, `u`/`uu` etc.) — symlink into place, then source from `~/.zshrc`:
|
|
|
|
|
```sh
|
|
|
|
|
ln -s ~/path/to/petersweb-infra/nixos/aliases.zsh ~/.zsh_aliases
|
|
|
|
|
echo 'source ~/.zsh_aliases' >> ~/.zshrc
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
---
|
|
|
|
|
|
2024-11-15 23:51:26 -09:00
|
|
|
This is the Nix server infrastructure for Quine Global. You will find it
|
|
|
|
|
contains some Nginx configuration, some shell and terminal configuration,
|
|
|
|
|
and system config.
|
|
|
|
|
|
|
|
|
|
Of particular note is the web deployment system with Nginx. This is a
|
|
|
|
|
homebrew system to easily deploy web applications. You can mount
|
|
|
|
|
an application as a Docker container, or using pullomatic, a service
|
|
|
|
|
that automatically pulls from Github every so often.
|
|
|
|
|
|
|
|
|
|
There is some overlap between this repo's use for Quine and Philip Peterson's
|
|
|
|
|
personal use. As such, there will be some reference to Philip Peterson's personal
|
|
|
|
|
projects or usernames.
|
|
|
|
|
|
|
|
|
|
The goal is to remove these references and have the repository
|
|
|
|
|
be more of a single concern, which is to support QUINE's mission to **improve
|
|
|
|
|
the world through open-source technology and environmental pollution research.**
|
|
|
|
|
|
|
|
|
|
However, the research required to create this separation is still pending, so
|
|
|
|
|
for now, the two concerns are mixed intentionally.
|
|
|
|
|
|
|
|
|
|
If you are interested in Quine's mission, please open an issue. We'd love to
|
|
|
|
|
hear from you!
|