From 71789fb33c5cd77687714acfeef56d367f075748 Mon Sep 17 00:00:00 2001 From: Jarkko Toivanen Date: Tue, 2 May 2023 18:18:14 +0300 Subject: [PATCH] Auto-optimize store, website --- .gitignore | 1 + nixos/leena/configuration.nix | 16 +++++++++++++++- 2 files changed, 16 insertions(+), 1 deletion(-) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..51c871b --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/cloudflare.token \ No newline at end of file diff --git a/nixos/leena/configuration.nix b/nixos/leena/configuration.nix index 2bf4c65..aeed076 100644 --- a/nixos/leena/configuration.nix +++ b/nixos/leena/configuration.nix @@ -35,6 +35,7 @@ }; }; + nix.settings.auto-optimise-store = true; nixpkgs.config.allowUnfree = true; programs.iftop.enable = true; programs.iotop.enable = true; @@ -77,9 +78,22 @@ apiTokenFile = "/home/jt/conf/cloudflare.token"; }; networking.firewall.enable = true; - # networking.firewall.allowedTCPPorts = [ ... ]; + networking.firewall.allowedTCPPorts = [ 80 443 ]; # networking.firewall.allowedUDPPorts = [ ... ]; + #security.acme.acceptTerms = true; + #security.acme.defaults.email = ""; + services.nginx = { + enable = true; + virtualHosts = { + "leena.jakest.us" = { + addSSL = true; + #enableACME = true; + root = "/var/www/leena.jakest.us"; + }; + }; + }; + # 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