nixos-config/modules/nixos/profiles/archiving.nix
Gabriel Arazas 6b481a163a Restructure the modules
While it is easier to maintain the modules by prefixing them all with
`modules`, it is not easy when used from other flakes and/or modules.
This is my attempt on making it easier with appropriate namespaces.

Update home-manager user from the restructure
2022-01-09 19:44:09 +08:00

21 lines
822 B
Nix

# All of your embarrassing moments, marked here forever.
{ config, options, lib, pkgs, ... }:
let cfg = config.profiles.archiving;
in {
options.profiles.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.
];
};
}