This commit is contained in:
TheWanderingCrow 2025-12-22 15:12:22 -05:00
parent 6636a7cb3a
commit 1b8e74fa53
2 changed files with 16 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

@ -20,7 +20,9 @@ in
options = {
services.actualbudget-report = {
enable = mkEnableOption "Actualbudget email reports";
package = mkPackageOption pkgs.default;
package = mkPackageOption pkgs "actualbudget-report" {
default = self.packages.${pkgs.stdenv.hostPlatform.system}.default;
};
interval = {
type = types.str;
default = "Sun 12:00:00";