1
0
Fork 0
mirror of https://github.com/nix-community/home-manager.git synced 2025-03-10 10:47:02 +00:00
home-manager/tests/modules/programs/qutebrowser/quickmarks.nix

28 lines
659 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
nmt.script = let
quickmarksFile = if pkgs.stdenv.hostPlatform.isDarwin then
".qutebrowser/quickmarks"
else
".config/qutebrowser/quickmarks";
in ''
assertFileContent \
home-files/${quickmarksFile} \
${
builtins.toFile "qutebrowser-expected-quickmarks" ''
2023-07-08 10:12:35 +02:00
home-manager https://github.com/nix-community/home-manager
nixpkgs https://github.com/NixOS/nixpkgs''
}
'';
}