1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-11-18 17:19:45 +01:00
home-manager/tests/modules/programs/qutebrowser/quickmarks.nix

30 lines
691 B
Nix
Raw Normal View History

2023-07-08 10:12:35 +02:00
{ pkgs, ... }:
{
2023-07-08 10:12:35 +02:00
programs.qutebrowser = {
enable = true;
2023-07-08 10:12:35 +02:00
quickmarks = {
nixpkgs = "https://github.com/NixOS/nixpkgs";
home-manager = "https://github.com/nix-community/home-manager";
};
2023-07-08 10:12:35 +02:00
};
2023-07-08 10:12:35 +02:00
test.stubs.qutebrowser = { };
2023-07-08 10:12:35 +02:00
nmt.script = let
quickmarksFile = if pkgs.stdenv.hostPlatform.isDarwin then
".qutebrowser/quickmarks"
else
".config/qutebrowser/quickmarks";
in ''
assertFileContent \
home-files/${quickmarksFile} \
${
pkgs.writeText "qutebrowser-expected-quickmarks" ''
home-manager https://github.com/nix-community/home-manager
nixpkgs https://github.com/NixOS/nixpkgs''
}
'';
}