Compare commits
4 commits
d199eaf7b2
...
f7490e5bad
Author | SHA1 | Date | |
---|---|---|---|
Antoine Martin | f7490e5bad | ||
Antoine Martin | d1b49fb8a5 | ||
Antoine Martin | 1bd88ce3df | ||
Antoine Martin | 003d1c801d |
|
@ -38,12 +38,13 @@ in {
|
|||
enable = true;
|
||||
# generate emacsclient desktop file
|
||||
client.enable = true;
|
||||
socketActivation.enable = true;
|
||||
};
|
||||
|
||||
programs.emacs = {
|
||||
enable = true;
|
||||
package = pkgs.emacsNativeComp;
|
||||
extraPackages = epkgs: [epkgs.vterm epkgs.pdf-tools pkgs.lilypond];
|
||||
extraPackages = epkgs: [epkgs.vterm epkgs.pdf-tools pkgs.lilypond epkgs.mu4e];
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
@ -92,6 +92,8 @@ in {
|
|||
adminpassFile = config.age.secrets."nextcloud/admin-pass".path;
|
||||
};
|
||||
|
||||
nginx.enable = true;
|
||||
|
||||
paperless = {
|
||||
enable = true;
|
||||
port = 8085;
|
||||
|
|
|
@ -9,12 +9,19 @@
|
|||
}: let
|
||||
inherit
|
||||
(lib)
|
||||
mkEnableOption
|
||||
mkIf
|
||||
;
|
||||
|
||||
cfg = config.my.services.nginx;
|
||||
in {
|
||||
options.my.services.nginx = {
|
||||
enable = mkEnableOption "Nginx reverse proxy";
|
||||
};
|
||||
|
||||
# Whenever something defines an nginx vhost, ensure that nginx defaults are
|
||||
# properly set.
|
||||
config = mkIf ((builtins.attrNames config.services.nginx.virtualHosts) != ["localhost"]) {
|
||||
config = mkIf (cfg.enable) {
|
||||
services.nginx = {
|
||||
enable = true;
|
||||
statusPage = true; # For monitoring scraping.
|
||||
|
|
Loading…
Reference in a new issue