Compare commits
No commits in common. "8f3b17df2b87137e0f62cd87a1b02d5836d301c5" and "bf2d7f7f10918a0d976008102390f473226dd236" have entirely different histories.
8f3b17df2b
...
bf2d7f7f10
33
README.md
33
README.md
|
@ -1,32 +1,3 @@
|
|||
# nixfiles
|
||||
# nixos-config
|
||||
|
||||
My NixOS configuration files.
|
||||
|
||||
## Machines
|
||||
|
||||
* `tohru`: Dell Latitude 5300, personal laptop
|
||||
* `yevaud`: Oracle Cloud free AMD VM, hosts a Forgejo instance
|
||||
|
||||
## Usage
|
||||
|
||||
### Building
|
||||
|
||||
To build locally, run `colmena apply-local` as root.
|
||||
|
||||
To build the remote machines, run `colmena apply`. See the [colmena documentation](https://colmena.cli.rs/) for command-line options. Notable options include:
|
||||
* `--on [hostname]`: build a specific machine only
|
||||
* `--reboot`: reboot after building (but note [this bug](https://github.com/zhaofengli/colmena/issues/166) means it may hang even when the reboot completes successfully)
|
||||
|
||||
### Updating
|
||||
|
||||
Run `npins update` to update the dependencies within the currently selected upgrade channels.
|
||||
|
||||
To upgrade to a new major version of a dependency, simply re-add it and the old version will be overwritten, e.g.:
|
||||
|
||||
```sh
|
||||
npins add --name nixpkgs channel nixos-unstable
|
||||
```
|
||||
|
||||
In either case, commit the changes to `npins/sources.json`.
|
||||
|
||||
See the [npins documentation](https://github.com/andir/npins) for more details.
|
||||
My NixOS configuration files
|
|
@ -10,15 +10,11 @@
|
|||
# TODO: interface customisation
|
||||
|
||||
services.nginx.virtualHosts = {
|
||||
"git.qenya.tel" = {
|
||||
forceSSL = true;
|
||||
enableACME = true;
|
||||
locations."/".proxyPass = "http://[::1]:3000/";
|
||||
};
|
||||
# TODO: move to new domain
|
||||
"git.katherina.rocks" = {
|
||||
forceSSL = true;
|
||||
enableACME = true;
|
||||
locations."/".return = "301 https://git.qenya.tel$request_uri";
|
||||
locations."/".proxyPass = "http://[::1]:3000/";
|
||||
};
|
||||
};
|
||||
|
||||
|
@ -26,7 +22,7 @@
|
|||
enable = true;
|
||||
stateDir = "/data/forgejo";
|
||||
settings = {
|
||||
DEFAULT.APP_NAME = "git.qenya.tel";
|
||||
DEFAULT.APP_NAME = "git.katherina.rocks";
|
||||
cache = {
|
||||
ADAPTER = "twoqueue";
|
||||
HOST = ''{"size": 100, "recent_ratio": 0.25, "ghost_ratio": 0.5}'';
|
||||
|
@ -37,9 +33,9 @@
|
|||
};
|
||||
security.LOGIN_REMEMBER_DAYS = 365;
|
||||
server = {
|
||||
DOMAIN = "git.qenya.tel";
|
||||
DOMAIN = "git.katherina.rocks";
|
||||
HTTP_PORT = 3000;
|
||||
ROOT_URL = "https://git.qenya.tel/";
|
||||
ROOT_URL = "https://git.katherina.rocks/";
|
||||
};
|
||||
service.DISABLE_REGISTRATION = true;
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue