diff options
author | Linnnus <[email protected]> | 2024-02-20 18:16:42 +0100 |
---|---|---|
committer | Linnnus <[email protected]> | 2024-02-20 18:16:42 +0100 |
commit | b63d45d4bb3d9a49ac196acb3bf19aab35cb6b97 (patch) | |
tree | c25952ac8a3f9e6cee508c184d9d2af4dddce9e7 /hosts/ahmed/nofitications.linus.onl/default.nix | |
parent | 1f675d8a4f90ea5e043a281f5b2a748033ada082 (diff) |
tmp: Remove options in host-specific services (ahmed)reorg
Diffstat (limited to 'hosts/ahmed/nofitications.linus.onl/default.nix')
-rw-r--r-- | hosts/ahmed/nofitications.linus.onl/default.nix | 24 |
1 files changed, 7 insertions, 17 deletions
diff --git a/hosts/ahmed/nofitications.linus.onl/default.nix b/hosts/ahmed/nofitications.linus.onl/default.nix index c050ef4..f3ab04f 100644 --- a/hosts/ahmed/nofitications.linus.onl/default.nix +++ b/hosts/ahmed/nofitications.linus.onl/default.nix @@ -1,19 +1,9 @@ -{ - lib, - config, - ... -}: let - inherit (lib) mkEnableOption mkIf; - - cfg = config.modules."notifications.linus.onl"; +{ ... }: let + # Enable HTTPS stuff. + useACME = true; in { - options.modules."notifications.linus.onl" = { - enable = mkEnableOption "notifications.linus.onl static site"; - - useACME = mkEnableOption "built-in HTTPS stuff"; - }; - - config = mkIf cfg.enable { + config = { + # Start the proxied service. services.push-notification-api = { enable = true; }; @@ -23,8 +13,8 @@ in { # Use NGINX as reverse proxy. services.nginx.virtualHosts."notifications.linus.onl" = { - enableACME = cfg.useACME; - forceSSL = cfg.useACME; + enableACME = useACME; + forceSSL = useACME; locations."/" = { recommendedProxySettings = true; proxyPass = "http://unix:/run/push-notification-api.sock"; |