mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-04-25 00:19:12 +00:00
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:
parent
84a846e9ef
commit
1e73f53f36
@ -2,7 +2,7 @@
|
||||
{ config, options, lib, pkgs, ... }:
|
||||
|
||||
let
|
||||
cfg = config.hardware-setup.backup-archive;
|
||||
cfg = config.tasks.backup-archive;
|
||||
|
||||
borgJobCommonSetting = { patterns ? [ ] }: {
|
||||
compression = "zstd,9";
|
||||
@ -37,7 +37,7 @@ let
|
||||
};
|
||||
|
||||
in {
|
||||
options.hardware-setup.backup-archive.enable =
|
||||
options.tasks.backup-archive.enable =
|
||||
lib.mkEnableOption "backup setup with BorgBackup";
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
@ -80,7 +80,7 @@ in {
|
||||
];
|
||||
} // {
|
||||
doInit = true;
|
||||
repo = "/archives/";
|
||||
repo = "/archives/backups";
|
||||
startAt = "04/5:00:00";
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user