mirror of
https://github.com/nix-community/home-manager
synced 2024-12-19 01:23:56 +00:00
38 lines
872 B
Nix
38 lines
872 B
Nix
|
{ 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''
|
||
|
}
|
||
|
'';
|
||
|
};
|
||
|
}
|