nixos-config/tests/modules/home-manager/services/archivebox/webserver.nix

31 lines
658 B
Nix
Raw Normal View History

{ config, ... }:
{
services.archivebox = {
enable = true;
archivePath = "${config.xdg.userDirs.documents}/ArchiveBox";
jobs.art = {
links = [
"https://www.davidrevoy.com/"
"https://www.youtube.com/c/ronillust"
];
startAt = "weekly";
};
webserver = {
enable = true;
port = 8888;
};
};
test.stubs.archivebox = { };
nmt.script = ''
assertFileExists home-files/.config/systemd/user/archivebox-job-art.service
assertFileExists home-files/.config/systemd/user/archivebox-job-art.timer
assertFileExists home-files/.config/systemd/user/archivebox-server.service
'';
}