commit 5f7ea4cccab0b00ffa9348388c99b0b651c0087c Author: TheWanderingCrow Date: Tue Nov 11 10:01:20 2025 -0500 chore: init diff --git a/.envrc b/.envrc new file mode 100644 index 0000000..3550a30 --- /dev/null +++ b/.envrc @@ -0,0 +1 @@ +use flake diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..d53e06f --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +.direnv/ +result diff --git a/README.md b/README.md new file mode 100644 index 0000000..79b8374 --- /dev/null +++ b/README.md @@ -0,0 +1,8 @@ +Learning golang, writing a simple app to interface with an HTTP API and generate emailable reports from an actualbudget instance + +# TODO +- [ ] Fetch the desired budget file +- [ ] Trigger a bank sync and see if we can wait for it to finish (might need to trigger the sync and then just wait, could also just do daily bank syncs at a certain hour) +- [ ] Fetch the category information for each category as well as the overall groups +- [ ] Compile a email-friendly report of the information +- [ ] Send the email to the desired parties via SMTP diff --git a/flake.lock b/flake.lock new file mode 100644 index 0000000..7e0c304 --- /dev/null +++ b/flake.lock @@ -0,0 +1,61 @@ +{ + "nodes": { + "flake-parts": { + "inputs": { + "nixpkgs-lib": "nixpkgs-lib" + }, + "locked": { + "lastModified": 1762810396, + "narHash": "sha256-dxFVgQPG+R72dkhXTtqUm7KpxElw3u6E+YlQ2WaDgt8=", + "owner": "hercules-ci", + "repo": "flake-parts", + "rev": "0bdadb1b265fb4143a75bd1ec7d8c915898a9923", + "type": "github" + }, + "original": { + "owner": "hercules-ci", + "repo": "flake-parts", + "type": "github" + } + }, + "nixpkgs": { + "locked": { + "lastModified": 1762596750, + "narHash": "sha256-rXXuz51Bq7DHBlfIjN7jO8Bu3du5TV+3DSADBX7/9YQ=", + "owner": "NixOS", + "repo": "nixpkgs", + "rev": "b6a8526db03f735b89dd5ff348f53f752e7ddc8e", + "type": "github" + }, + "original": { + "owner": "NixOS", + "ref": "nixos-unstable", + "repo": "nixpkgs", + "type": "github" + } + }, + "nixpkgs-lib": { + "locked": { + "lastModified": 1761765539, + "narHash": "sha256-b0yj6kfvO8ApcSE+QmA6mUfu8IYG6/uU28OFn4PaC8M=", + "owner": "nix-community", + "repo": "nixpkgs.lib", + "rev": "719359f4562934ae99f5443f20aa06c2ffff91fc", + "type": "github" + }, + "original": { + "owner": "nix-community", + "repo": "nixpkgs.lib", + "type": "github" + } + }, + "root": { + "inputs": { + "flake-parts": "flake-parts", + "nixpkgs": "nixpkgs" + } + } + }, + "root": "root", + "version": 7 +} diff --git a/flake.nix b/flake.nix new file mode 100644 index 0000000..bac2f33 --- /dev/null +++ b/flake.nix @@ -0,0 +1,40 @@ +{ + description = "actualbudget-report"; + + inputs = { + flake-parts.url = "github:hercules-ci/flake-parts"; + nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable"; + }; + + outputs = + inputs@{ flake-parts, ... }: + flake-parts.lib.mkFlake { inherit inputs; } { + systems = [ + "x86_64-linux" + "aarch64-linux" + "aarch64-darwin" + "x86_64-darwin" + ]; + perSystem = + { + config, + self', + inputs', + pkgs, + system, + ... + }: + { + # Per-system attributes can be defined here. The self' and inputs' + # module parameters provide easy access to attributes of the same + # system. + + # Equivalent to inputs'.nixpkgs.legacyPackages.hello; + # FIXME(TODO): Build the package + # packages.default = + devShells.default = pkgs.mkShell { + nativeBuildInputs = with pkgs; [ go ]; + }; + }; + }; +}