2021-11-25 11:55:30 +00:00
|
|
|
# All of your embarrassing moments, marked here forever.
|
|
|
|
{ config, options, lib, pkgs, ... }:
|
|
|
|
|
2021-11-25 13:45:48 +00:00
|
|
|
let cfg = config.modules.archiving;
|
|
|
|
in {
|
|
|
|
options.modules.archiving.enable =
|
|
|
|
lib.mkEnableOption "Install and configure archiving tools.";
|
2021-11-25 11:55:30 +00:00
|
|
|
|
|
|
|
# This is not going to set BorgBackup NixOS services for you.
|
|
|
|
# Please do it for host-specific configs instead.
|
|
|
|
config = lib.mkIf cfg.enable {
|
|
|
|
environment.systemPackages = with pkgs; [
|
2021-11-25 13:45:48 +00:00
|
|
|
archivebox # Create by ye' old pirate.
|
|
|
|
borgbackup # I'm pretty sure this is named after some thing from a franchise somewhere but I'm not omnipresent.
|
|
|
|
borgmatic # For those insisting on configurations for BorgBackup.
|
|
|
|
fanficfare # Your fanfics in my hard drive? Pay me rent first.
|
|
|
|
yt-dlp # More active fork after youtube-dl has been striked.
|
2021-11-25 11:55:30 +00:00
|
|
|
];
|
|
|
|
};
|
|
|
|
}
|