depot/third_party/home-manager/tests/modules/misc/nix/example-registry.nix

26 lines
408 B
Nix
Raw Normal View History

{ config, lib, pkgs, ... }:
with lib;
{
config = {
nix = {
registry = {
nixpkgs = {
to = {
type = "github";
owner = "my-org";
repo = "my-nixpkgs";
};
};
};
};
nmt.script = ''
assertFileContent \
home-files/.config/nix/registry.json \
${./example-registry-expected.json}
'';
};
}