summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorQuentin Aristote <quentin@aristote.fr>2021-08-14 18:49:28 +0200
committerQuentin Aristote <quentin@aristote.fr>2021-08-14 18:49:28 +0200
commitb08e8f21a4da329f0507eef1781a2e6922c27dc5 (patch)
treed422658ddc23f764d7bebfe646bd48dd7b2e20fe /config
parent04d087c21f99c53ecbd03c7ba5d213bbc8fef9f9 (diff)
add ihatemoney web service
Diffstat (limited to 'config')
-rw-r--r--config/default.nix1
-rw-r--r--config/ihatemoney.nix16
-rw-r--r--config/networking.nix2
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;
};