This commit is contained in:
TheWanderingCrow 2025-12-22 15:12:22 -05:00
parent 6636a7cb3a
commit abce9344cb
2 changed files with 14 additions and 7 deletions

View file

@ -7,7 +7,11 @@
};
outputs =
inputs@{ flake-parts, ... }:
inputs@{
self,
flake-parts,
...
}:
flake-parts.lib.mkFlake { inherit inputs; } {
systems = [
"x86_64-linux"
@ -15,9 +19,14 @@
"aarch64-darwin"
"x86_64-darwin"
];
flake.nixosModules = {
default = ./modules/actualbudget-report;
};
flake.nixosModules.default =
{ lib, pkgs, ... }:
{
imports = [ ./modules/actualbudget-report ];
options.services.actualbudget-report.package = lib.mkPackageOption pkgs "actualbudget-report" {
default = self.packages.${pkgs.stdenv.hostPlatform.system}.default;
};
};
perSystem =
{
config,

View file

@ -11,7 +11,6 @@ let
inherit (lib)
mkEnableOption
mkOption
mkPackageOption
mkIf
types
;
@ -20,8 +19,7 @@ in
options = {
services.actualbudget-report = {
enable = mkEnableOption "Actualbudget email reports";
package = mkPackageOption pkgs.default;
interval = {
interval = mkOption {
type = types.str;
default = "Sun 12:00:00";
description = "systemd-timer OnCalendar legal string for sending reports.";