Compare commits

..

No commits in common. "f7490e5bad5f5ace72f0fb50db89e1a2d04be03f" and "d199eaf7b2347feb41ac001d2bff909f23d37130" have entirely different histories.

3 changed files with 2 additions and 12 deletions

View file

@ -38,13 +38,12 @@ in {
enable = true; enable = true;
# generate emacsclient desktop file # generate emacsclient desktop file
client.enable = true; client.enable = true;
socketActivation.enable = true;
}; };
programs.emacs = { programs.emacs = {
enable = true; enable = true;
package = pkgs.emacsNativeComp; package = pkgs.emacsNativeComp;
extraPackages = epkgs: [epkgs.vterm epkgs.pdf-tools pkgs.lilypond epkgs.mu4e]; extraPackages = epkgs: [epkgs.vterm epkgs.pdf-tools pkgs.lilypond];
}; };
}; };
} }

View file

@ -92,8 +92,6 @@ in {
adminpassFile = config.age.secrets."nextcloud/admin-pass".path; adminpassFile = config.age.secrets."nextcloud/admin-pass".path;
}; };
nginx.enable = true;
paperless = { paperless = {
enable = true; enable = true;
port = 8085; port = 8085;

View file

@ -9,19 +9,12 @@
}: let }: let
inherit inherit
(lib) (lib)
mkEnableOption
mkIf mkIf
; ;
cfg = config.my.services.nginx;
in { in {
options.my.services.nginx = {
enable = mkEnableOption "Nginx reverse proxy";
};
# Whenever something defines an nginx vhost, ensure that nginx defaults are # Whenever something defines an nginx vhost, ensure that nginx defaults are
# properly set. # properly set.
config = mkIf (cfg.enable) { config = mkIf ((builtins.attrNames config.services.nginx.virtualHosts) != ["localhost"]) {
services.nginx = { services.nginx = {
enable = true; enable = true;
statusPage = true; # For monitoring scraping. statusPage = true; # For monitoring scraping.