nixos-config/modules/nixos/archiving.nix
Gabriel Arazas efc578e961 Update modules
- Add `modules.desktop.cleanup` for the usual cleanup activties in
  NixOS.
- Update to proper descriptions for module options added with
  `lib.mkEnableOption`.
- Additional packages for various modules.
- Deleted `modules/home-manager/alacritty`. It is pretty useless though.
  :(
2021-12-11 13:16:45 +08:00

21 lines
820 B
Nix

# All of your embarrassing moments, marked here forever.
{ config, options, lib, pkgs, ... }:
let cfg = config.modules.archiving;
in {
options.modules.archiving.enable =
lib.mkEnableOption "installation of various archiving tools";
# 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; [
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.
];
};
}