qutebrowser: add quickmark support (#2059)
Closes: https://github.com/nix-community/home-manager/issues/1230
This commit is contained in:
parent
e0f2949c98
commit
be0e73a308
3 changed files with 68 additions and 0 deletions
|
|
@ -1,4 +1,5 @@
|
|||
{
|
||||
qutebrowser-settings = ./settings.nix;
|
||||
qutebrowser-keybindings = ./keybindings.nix;
|
||||
qutebrowser-quickmarks = ./quickmarks.nix;
|
||||
}
|
||||
|
|
|
|||
37
tests/modules/programs/qutebrowser/quickmarks.nix
Normal file
37
tests/modules/programs/qutebrowser/quickmarks.nix
Normal file
|
|
@ -0,0 +1,37 @@
|
|||
{ config, lib, pkgs, ... }:
|
||||
|
||||
with lib;
|
||||
|
||||
{
|
||||
config = {
|
||||
programs.qutebrowser = {
|
||||
enable = true;
|
||||
|
||||
quickmarks = {
|
||||
nixpkgs = "https://github.com/NixOS/nixpkgs";
|
||||
home-manager = "https://github.com/nix-community/home-manager";
|
||||
};
|
||||
};
|
||||
|
||||
nixpkgs.overlays = [
|
||||
(self: super: {
|
||||
qutebrowser = pkgs.writeScriptBin "dummy-qutebrowser" "";
|
||||
})
|
||||
];
|
||||
|
||||
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''
|
||||
}
|
||||
'';
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue