Skip to content

Commit

Permalink
ghaf-webserver: Add nginx service
Browse files Browse the repository at this point in the history
Also add emacs for editing pages to publish

Signed-off-by: Marko Lindqvist <[email protected]>
  • Loading branch information
Marko Lindqvist committed Dec 4, 2024
1 parent 1920457 commit 2409dfc
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions hosts/ghaf-webserver/configuration.nix
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
inputs,
modulesPath,
lib,
pkgs,
...
}:
{
Expand All @@ -20,10 +21,14 @@
++ (with self.nixosModules; [
common
service-openssh
service-nginx
user-cazfi
user-jrautiola
]);

# List packages installed in system profile
environment.systemPackages = with pkgs; [ emacs ];

# this server has been installed with 24.05
system.stateVersion = lib.mkForce "24.05";

Expand All @@ -43,4 +48,20 @@
efiInstallAsRemovable = true;
};
};

services.nginx = {
virtualHosts = {
"vedenemo.dev" = {
enableACME = true;
forceSSL = true;
root = "/var/www/vedenemo.dev";
default = true;
};
};
};

security.acme = {
acceptTerms = true;
defaults.email = "[email protected]";
};
}

0 comments on commit 2409dfc

Please sign in to comment.