From 4472acc3c106bc34d3807dfe7468063061cd41ca Mon Sep 17 00:00:00 2001 From: TheWanderingCrow Date: Mon, 22 Dec 2025 15:12:22 -0500 Subject: [PATCH] wip --- flake.nix | 17 +++++++++++++---- modules/actualbudget-report/default.nix | 5 ++++- 2 files changed, 17 insertions(+), 5 deletions(-) diff --git a/flake.nix b/flake.nix index 5caf0c0..f386f19 100644 --- a/flake.nix +++ b/flake.nix @@ -7,7 +7,12 @@ }; outputs = - inputs@{ flake-parts, ... }: + inputs@{ + self, + flake-parts, + flake-parts-lib, + ... + }: flake-parts.lib.mkFlake { inherit inputs; } { systems = [ "x86_64-linux" @@ -15,9 +20,13 @@ "aarch64-darwin" "x86_64-darwin" ]; - flake.nixosModules = { - default = ./modules/actualbudget-report; - }; + flake.nixosModules = + let + inherit (flake-parts-lib) importApply; + in + { + default = importApply ./modules/actualbudget-report { localFlake = self; }; + }; perSystem = { config, diff --git a/modules/actualbudget-report/default.nix b/modules/actualbudget-report/default.nix index d3e3763..922c112 100644 --- a/modules/actualbudget-report/default.nix +++ b/modules/actualbudget-report/default.nix @@ -1,3 +1,4 @@ +{ localFlake }: { config, options, @@ -20,7 +21,9 @@ in options = { services.actualbudget-report = { enable = mkEnableOption "Actualbudget email reports"; - package = mkPackageOption pkgs.default; + package = mkPackageOption pkgs "actualbudget-report" { + default = localFlake.packages.${pkgs.stdenv.hostPlatform.system}.default; + }; interval = { type = types.str; default = "Sun 12:00:00";