minor updates
This commit is contained in:
parent
24dd2cce4f
commit
1142c6acac
5 changed files with 23 additions and 20 deletions
|
@ -39,7 +39,6 @@
|
|||
systemd.tmpfiles.rules =
|
||||
[ "d '/var/lib/watchstate' 0755 watchstate watchstate -" ];
|
||||
|
||||
|
||||
networking.firewall.allowedTCPPorts = [ 8080 ];
|
||||
|
||||
# Managed imperatively through its CLI
|
||||
|
@ -51,6 +50,7 @@
|
|||
WS_TZ = "Europe/Amsterdam";
|
||||
WS_CRON_IMPORT = "1";
|
||||
WS_CRON_EXPORT = "1";
|
||||
WS_CRON_PROGRESS = "1";
|
||||
};
|
||||
ports = [ "8080:8080" ];
|
||||
volumes = [ "/var/lib/watchstate:/config:rw" ];
|
||||
|
|
|
@ -6,11 +6,12 @@
|
|||
./fs.nix
|
||||
];
|
||||
|
||||
|
||||
boot.loader.systemd-boot.enable = true;
|
||||
services = {
|
||||
|
||||
# Enable the OpenSSH daemon.
|
||||
openssh.enable = true; # Did you read the comment?
|
||||
openssh.enable = true;
|
||||
|
||||
nfs.server = {
|
||||
enable = true;
|
||||
|
@ -22,10 +23,7 @@
|
|||
snapraid = {
|
||||
enable = true;
|
||||
parityFiles =
|
||||
[
|
||||
"/mnt/parity1/snapraid.parity"
|
||||
"/mnt/parity2/snapraid.parity"
|
||||
];
|
||||
[ "/mnt/parity1/snapraid.parity" "/mnt/parity2/snapraid.parity" ];
|
||||
dataDisks = {
|
||||
d1 = "/mnt/disk1";
|
||||
d2 = "/mnt/disk2";
|
||||
|
|
|
@ -13,8 +13,7 @@ let
|
|||
add_header Access-Control-Allow-Origin *;
|
||||
return 200 '${builtins.toJSON data}';
|
||||
'';
|
||||
in
|
||||
{
|
||||
in {
|
||||
# This value determines the NixOS release from which the default
|
||||
# settings for stateful data, like file locations and database versions
|
||||
# on your system were taken. It‘s perfectly fine and recommended to leave
|
||||
|
@ -40,9 +39,15 @@ in
|
|||
|
||||
package = pkgs.nginxMainline;
|
||||
|
||||
commonHttpConfig = ''
|
||||
types {
|
||||
application/javascript mjs;
|
||||
}
|
||||
'';
|
||||
|
||||
# Templated
|
||||
virtualHosts = {
|
||||
"pass.0x76.dev" = {
|
||||
"pass.0x76.dev" = {
|
||||
enableACME = true;
|
||||
forceSSL = true;
|
||||
locations = {
|
||||
|
@ -66,8 +71,8 @@ in
|
|||
forceSSL = true;
|
||||
|
||||
locations."/".extraConfig = ''
|
||||
add_header Content-Type 'text/html; charset=UTF-8';
|
||||
return 200 '<h1>Under Construction</h1>';
|
||||
add_header Content-Type 'text/html; charset=UTF-8';
|
||||
return 200 '<h1>Under Construction</h1>';
|
||||
'';
|
||||
};
|
||||
|
||||
|
@ -76,8 +81,8 @@ in
|
|||
forceSSL = true;
|
||||
|
||||
locations."/".extraConfig = ''
|
||||
add_header Content-Type 'text/html; charset=UTF-8';
|
||||
return 200 '<h1>Under Construction</h1>';
|
||||
add_header Content-Type 'text/html; charset=UTF-8';
|
||||
return 200 '<h1>Under Construction</h1>';
|
||||
'';
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue