rename hardware-setup to tasks

It isn't really hardware-specific anymore and it is better to put them
all under in one basket. This is similar to my Ansible playbooks setup.
This commit is contained in:
Gabriel Arazas 2022-03-31 13:59:54 +08:00
parent 84a846e9ef
commit 1e73f53f36
3 changed files with 3 additions and 3 deletions

View File

@ -2,7 +2,7 @@
{ config, options, lib, pkgs, ... }: { config, options, lib, pkgs, ... }:
let let
cfg = config.hardware-setup.backup-archive; cfg = config.tasks.backup-archive;
borgJobCommonSetting = { patterns ? [ ] }: { borgJobCommonSetting = { patterns ? [ ] }: {
compression = "zstd,9"; compression = "zstd,9";
@ -37,7 +37,7 @@ let
}; };
in { in {
options.hardware-setup.backup-archive.enable = options.tasks.backup-archive.enable =
lib.mkEnableOption "backup setup with BorgBackup"; lib.mkEnableOption "backup setup with BorgBackup";
config = lib.mkIf cfg.enable { config = lib.mkIf cfg.enable {
@ -80,7 +80,7 @@ in {
]; ];
} // { } // {
doInit = true; doInit = true;
repo = "/archives/"; repo = "/archives/backups";
startAt = "04/5:00:00"; startAt = "04/5:00:00";
}; };