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