Skip to content

Commit

Permalink
Merge pull request #80 from sioodmy/niri
Browse files Browse the repository at this point in the history
Niri
  • Loading branch information
sioodmy authored May 1, 2024
2 parents fd93061 + 5908370 commit 20e8866
Show file tree
Hide file tree
Showing 4 changed files with 51 additions and 8 deletions.
19 changes: 18 additions & 1 deletion flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,10 @@
url = "github:lighttigerXIV/catppuccinifier";
inputs.nixpkgs.follows = "nixpkgs";
};
website = {
url = "github:sioodmy/website";
flake = false;
};
};
}
# see also:
Expand Down
1 change: 1 addition & 0 deletions home/rice/niri/config.nix
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ with theme.colors; ''
warp-mouse-to-focus
focus-follows-mouse
workspace-auto-back-and-forth
}
output "eDP-1" {
Expand Down
35 changes: 28 additions & 7 deletions system/server/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,38 @@
services.nginx = {
enable = true;
# package = pkgs.nginx.override {openssl = pkgs.libressl;};
package = pkgs.angieQuic;
package = pkgs.angieQuic.override {openssl = pkgs.libressl;};

# # lets be more picky on our ciphers and protocols
# sslCiphers = "EECDH+aRSA+AESGCM:EDH+aRSA:EECDH+aRSA:+AES256:+AES128:+SHA1:!CAMELLIA:!SEED:!3DES:!DES:!RC4:!eNULL";
# sslProtocols = "TLSv1.3 TLSv1.2";
recommendedTlsSettings = true;
recommendedOptimisation = true;
recommendedGzipSettings = true;
recommendedProxySettings = true;
recommendedZstdSettings = true;

# lets be more picky on our ciphers and protocols
sslCiphers = "EECDH+aRSA+AESGCM:EDH+aRSA:EECDH+aRSA:+AES256:+AES128:+SHA1:!CAMELLIA:!SEED:!3DES:!DES:!RC4:!eNULL";
sslProtocols = "TLSv1.3 TLSv1.2";

commonHttpConfig = ''
#real_ip_header CF-Connecting-IP;
add_header 'Referrer-Policy' 'origin-when-cross-origin';
add_header X-Frame-Options DENY;
add_header X-Content-Type-Options nosniff;
'';

virtualHosts = {
"sioodmy.dev" = {
root = "${inputs.sioodmy-dev.packages.${pkgs.system}.website}/";
root = inputs.website;
enableACME = true;
locations."/" = {
tryFiles = "$uri $uri.html $uri/ =404";
extraConfig = ''
if ($request_uri ~ ^/(.*)\.html$) {
return 302 /$1;
}
'';
};

forceSSL = true;
};
"search.sioodmy.dev" = {
Expand All @@ -37,7 +59,6 @@
};

networking.firewall = {
allowedUDPPorts = [51820 5232];
allowedTCPPorts = [5232 80 3000];
allowedTCPPorts = [80 443];
};
}

0 comments on commit 20e8866

Please sign in to comment.