nixos/modules/shell/nix/search.nix

19 lines
325 B
Nix
Raw Normal View History

2023-07-08 20:00:13 +04:00
{ options, config, lib, pkgs, ...}:
with lib;
let cfg = config.modules.shell.nix.search;
in
{
options.modules.shell.nix.search = {
enable = mkEnableOption false;
};
config = mkIf cfg.enable {
nix = {
registry = {
nixpkgs.flake = nixpkgs;
nixos-hardware.flake = nixos-hw;
};
};
};
}