mirror of
https://github.com/nix-community/home-manager
synced 2024-12-21 10:33:25 +00:00
cb09a968e9
This option provides a more convenient way to overlay dummy packages. It also adds a function `config.lib.test.mkStubPackage` that can, e.g., be used for `package` options.
33 lines
777 B
Nix
33 lines
777 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";
|
|
};
|
|
};
|
|
|
|
test.stubs.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''
|
|
}
|
|
'';
|
|
};
|
|
}
|