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;
|
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];
|
extraPackages = epkgs: [epkgs.vterm epkgs.pdf-tools pkgs.lilypond epkgs.mu4e];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -92,6 +92,8 @@ 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;
|
||||||
|
|
|
@ -9,12 +9,19 @@
|
||||||
}: 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 ((builtins.attrNames config.services.nginx.virtualHosts) != ["localhost"]) {
|
config = mkIf (cfg.enable) {
|
||||||
services.nginx = {
|
services.nginx = {
|
||||||
enable = true;
|
enable = true;
|
||||||
statusPage = true; # For monitoring scraping.
|
statusPage = true; # For monitoring scraping.
|
||||||
|
|
Loading…
Reference in a new issue