diff options
Diffstat (limited to 'config')
| -rw-r--r-- | config/default.nix | 1 | ||||
| -rw-r--r-- | config/ihatemoney.nix | 16 | ||||
| -rw-r--r-- | config/networking.nix | 2 |
3 files changed, 18 insertions, 1 deletions
diff --git a/config/default.nix b/config/default.nix index 39de497..ffbbef3 100644 --- a/config/default.nix +++ b/config/default.nix @@ -6,6 +6,7 @@ (modulesPath + "/profiles/minimal.nix") ./boot.nix ./environment.nix + ./ihatemoney.nix ./hardware-configuration.nix ./networking.nix ./searx diff --git a/config/ihatemoney.nix b/config/ihatemoney.nix new file mode 100644 index 0000000..5eb086b --- /dev/null +++ b/config/ihatemoney.nix @@ -0,0 +1,16 @@ +{ ... }: + +{ + services.ihatemoney = { + enable = true; + enableAdminDashboard = true; + adminHashedPassword = + "pbkdf2:sha256:150000$s78RCYkJ$9c15a62ed1c89625cb78b5bde87d03b6dd1a03831afa4dbb2abb15ea4c1e150b"; + uwsgiConfig = { http = ":8000"; }; + extraConfig = '' + APPLICATION_ROOT = "https://quentin.aristote.fr/money/" + ''; + }; + + services.nginx.virtualHosts."quentin.aristote.fr".locations."/money/".proxyPass = "http://127.0.0.1:8000/"; +} diff --git a/config/networking.nix b/config/networking.nix index a9a3494..0a103c4 100644 --- a/config/networking.nix +++ b/config/networking.nix @@ -36,7 +36,7 @@ }; "quentin.aristote.fr" = { - root = "${pkgs.personal.academic-webpage}"; + locations."/".root = "${pkgs.personal.academic-webpage}"; forceSSL = true; enableACME = true; }; |
