added readme

emily 4 months ago
parent b8fac75c93
commit 67409e9563
Signed by: snaki
GPG Key ID: F6F4C66207FCF995

@ -0,0 +1,48 @@
## Deploying using NixOS
Requirements:
- flakes
- Have the `inputs` attrset avaiable in the module args. Read [this](https://pad.yuka.dev/s/DpS0wJ4R6#).
Add this flake to your inputs:
```nix
inputs.kyouma-www.url = "git+ssh://git@git.bsd.gay/snaki/kyouma-net.git";
```
Import the module and declare your config:
```nix
{ inputs, lib, ... }:
let
kyouma-www = inputs.kyouma-www.packages.${config.nixpkgs.hostPlatform.system};
in {
imports = [
inputs.kyouma-www.nixosModules.default
];
services.vyosBld = {
enable = true;
output = "/var/www/example.org/vyos";
buildFlags = {
architecture = "amd64";
build-by = "foo@example.org";
build-type = "release";
version = "1.5-$(date %Y%m%d)";
};
};
services.nginx = {
"example.org" = {
root = kyouma-www.default;
locations = {
"/assets/media/".root = kyouma-www.vid;
"/vyos/" = {
root = config.services.vyosBld.output;
extraConfig = ''
autoindex on;
autoindex_exact_size off;
'';
};
};
};
};
}
```
Loading…
Cancel
Save