git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #54514 from LeOtaku/fix/restic-timer-config

nixos/restic: change type of timerConfig option

commit968eb6b3e0580e9ec63842c4e9597a102596a18c authorSilvan Mosberger <infinisil@icloud.com> dateThu 24 Jan 2019, 00:40 (8 years ago) parent3bb9b1063ed962
1 file changed+6−1
nixos/modules/services/backup/restic.nix+6−1
nixos/modules/services/backup/restic.nix+6−1
@@ -1,6 +1,11 @@
11{ config, lib, pkgs, ... }:
22
33with lib;
4+
5+let
6+ # Type for a valid systemd unit option. Needed for correctly passing "timerConfig" to "systemd.timers"
7+ unitOption = (import ../../system/boot/systemd-unit-options.nix { inherit config lib; }).unitOption;
8+in
49{
510 options.services.restic.backups = mkOption {
611 description = ''
@@ -47,7 +52,7 @@ with lib;
4752 };
4853
4954 timerConfig = mkOption {
50− type = types.attrsOf types.str;
55+ type = types.attrsOf unitOption;
5156 default = {
5257 OnCalendar = "daily";
5358 };