mirror of
https://github.com/nix-community/home-manager
synced 2024-11-14 07:09:45 +01:00
31 lines
733 B
Nix
31 lines
733 B
Nix
|
{ 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'"
|
||
|
'';
|
||
|
}
|