Compare commits
No commits in common. "3bb1c98153887fad68570bb270956af3e31227ff" and "cbda46edd58ae746ed996dbc5a5c608a42726bda" have entirely different histories.
3bb1c98153
...
cbda46edd5
|
@ -1,7 +0,0 @@
|
||||||
## Unified nix configuration
|
|
||||||
|
|
||||||
Switch server: `nixos-rebuild switch --target-host root@posixlycorrect.com --use-substitutes --show-trace --flake .\#vps`
|
|
||||||
Switch current machine: `sudo nixos-rebuild switch --flake . --show-trace`
|
|
||||||
Switch current home manager: `home-manager switch --flake . --show-trace`
|
|
||||||
Update homepage: `nix flake update --commit-lock-file --update-input homepage`
|
|
||||||
Update whole flake: `nix flake update --commit-lock-file`
|
|
|
@ -19,12 +19,13 @@ in {
|
||||||
};
|
};
|
||||||
|
|
||||||
environment = {
|
environment = {
|
||||||
systemPackages = with pkgs; [
|
systemPackages = with pkgs;
|
||||||
protontricks
|
[
|
||||||
protonup
|
protontricks
|
||||||
protonup-ng
|
protonup
|
||||||
winetricks
|
protonup-ng
|
||||||
];
|
winetricks
|
||||||
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -18,6 +18,5 @@ with lib; {
|
||||||
./shiori.nix
|
./shiori.nix
|
||||||
./calibre-web.nix
|
./calibre-web.nix
|
||||||
./immich.nix
|
./immich.nix
|
||||||
./wiki-js.nix
|
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
{
|
{
|
||||||
config,
|
|
||||||
lib,
|
lib,
|
||||||
pkgs,
|
pkgs,
|
||||||
...
|
...
|
||||||
|
|
|
@ -1,53 +0,0 @@
|
||||||
{
|
|
||||||
lib,
|
|
||||||
pkgs,
|
|
||||||
...
|
|
||||||
}:
|
|
||||||
with lib; {
|
|
||||||
systemd.services.wiki-js = {
|
|
||||||
requires = ["postgresql.service"];
|
|
||||||
after = ["postgresql.service"];
|
|
||||||
};
|
|
||||||
|
|
||||||
services = {
|
|
||||||
nginx = {
|
|
||||||
virtualHosts."wjs.posixlycorrect.com" = {
|
|
||||||
enableACME = true;
|
|
||||||
forceSSL = true;
|
|
||||||
extraConfig = ''
|
|
||||||
proxy_headers_hash_max_size 512;
|
|
||||||
proxy_headers_hash_bucket_size 128;
|
|
||||||
'';
|
|
||||||
locations."/" = {
|
|
||||||
proxyPass = "http://127.0.0.1:3000";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
wiki-js = {
|
|
||||||
enable = true;
|
|
||||||
environmentFile = "/var/trust/wiki-js/env.txt";
|
|
||||||
settings = {
|
|
||||||
bindIP = "127.0.0.1";
|
|
||||||
port = 3000;
|
|
||||||
db = {
|
|
||||||
db = "wiki-js";
|
|
||||||
user = "wiki-js";
|
|
||||||
type = "postgres";
|
|
||||||
host = "/run/postgresql";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
postgresql = {
|
|
||||||
enable = true;
|
|
||||||
ensureDatabases = ["wiki-js"];
|
|
||||||
ensureUsers = [
|
|
||||||
{
|
|
||||||
name = "wiki-js";
|
|
||||||
ensureDBOwnership = true;
|
|
||||||
}
|
|
||||||
];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
Loading…
Reference in a new issue