1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-11-24 03:59:46 +01:00
home-manager/tests/modules/programs/freetube/basic-configuration.nix

31 lines
733 B
Nix
Raw Normal View History

2024-04-21 13:12:43 +02:00
{ config, pkgs, ... }:
{
programs.freetube = {
enable = true;
settings = {
useRssFeeds = true;
hideHeaderLogo = true;
allowDashAv1Formats = true;
commentAutoLoadEnabled = true;
checkForUpdates = false;
checkForBlogPosts = false;
listType = "list";
defaultQuality = "1080";
};
};
test.stubs.freetube = { };
nmt.script = ''
assertFileExists home-files/.config/FreeTube/hm_settings.db
assertFileContent home-files/.config/FreeTube/hm_settings.db \
${./basic-configuration.db}
assertFileContains activate \
"install -Dm644 \$VERBOSE_ARG '/home/hm-user/.config/FreeTube/hm_settings.db' '/home/hm-user/.config/FreeTube/settings.db'"
'';
}