This commit is contained in:
TheWanderingCrow 2025-12-22 15:12:22 -05:00
parent 6636a7cb3a
commit 4472acc3c1
2 changed files with 17 additions and 5 deletions

View file

@ -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,

View file

@ -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";