From 530edccdf56318dd322f66d935c800a3e6f17bb8 Mon Sep 17 00:00:00 2001 From: Nathan van Doorn Date: Wed, 26 Jun 2024 15:09:19 +0000 Subject: [PATCH 1/2] Add hledger-web service --- flake.nix | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/flake.nix b/flake.nix index 4426548..4fa83ae 100644 --- a/flake.nix +++ b/flake.nix @@ -55,6 +55,13 @@ }; nixpkgs.config.allowUnfree = true; }; + nixosModules.hledger = {...}: { + services.hledger-web = { + enable = true; + allow = "edit"; + }; + networking.firewall.allowedTCPPorts = [ 5000 ]; + }; nixosModules.samba = {...}: { services.samba = { enable = true; @@ -85,6 +92,7 @@ self.nixosModules.zfs self.nixosModules.plex self.nixosModules.samba + self.nixosModules.hledger ]; }; }; -- 2.44.1 From 35862426aece4a7ecca086fc4d769b89659f96ff Mon Sep 17 00:00:00 2001 From: Nathan van Doorn Date: Sat, 29 Jun 2024 05:54:54 +0000 Subject: [PATCH 2/2] Get hledger to work --- flake.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/flake.nix b/flake.nix index 4fa83ae..f48ba21 100644 --- a/flake.nix +++ b/flake.nix @@ -59,6 +59,8 @@ services.hledger-web = { enable = true; allow = "edit"; + host = "0.0.0.0"; + baseUrl = "http://192.168.1.37:5000"; }; networking.firewall.allowedTCPPorts = [ 5000 ]; }; -- 2.44.1