WIP: feat/automated-account-deletion #174

Draft
b12f wants to merge 23 commits from feat/automated-account-deletion into main
Showing only changes of commit 45b0500f0f - Show all commits

View file

@ -4,8 +4,11 @@
lib, lib,
pkgs, pkgs,
... ...
}: }: let
{ utils = import "${flake.inputs.nixpkgs}/nixos/lib/utils.nix" { inherit lib; inherit config; inherit pkgs; };
# Type for a valid systemd unit option. Needed for correctly passing "timerConfig" to "systemd.timers"
inherit (utils.systemdUtils.unitOptions) unitOption;
in {
options.pub-solar-os.backups = { options.pub-solar-os.backups = {
stores = stores =
with lib; with lib;
@ -163,7 +166,7 @@
runCheck = mkOption { runCheck = mkOption {
type = types.bool; type = types.bool;
default = (builtins.length config.services.restic.backups.${name}.checkOpts > 0); default = (builtins.length config.pub-solar-os.backups.backups.${name}.checkOpts > 0);
defaultText = literalExpression ''builtins.length config.services.backups.${name}.checkOpts > 0''; defaultText = literalExpression ''builtins.length config.services.backups.${name}.checkOpts > 0'';
description = "Whether to run the `check` command with the provided `checkOpts` options."; description = "Whether to run the `check` command with the provided `checkOpts` options.";
example = true; example = true;