mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-01-31 16:57:55 +00:00
31 lines
658 B
Nix
31 lines
658 B
Nix
|
{ 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
|
||
|
'';
|
||
|
}
|