wip
This commit is contained in:
parent
6636a7cb3a
commit
abce9344cb
2 changed files with 14 additions and 7 deletions
17
flake.nix
17
flake.nix
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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.";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue