nur.nix (380B)
1 { config, lib, pkgs, ... }: 2 3 with lib; 4 let 5 cfg = config.core.nur; 6 in 7 { 8 options = { 9 core.nur = { 10 enable = mkOption { type = types.bool; default = true; description = "Enable core.nur"; }; 11 }; 12 }; 13 config = mkIf cfg.enable { 14 nixpkgs.config = { 15 packageOverrides = pkgs: { 16 nur = (import ../../../nix).nur { inherit pkgs; }; 17 }; 18 }; 19 }; 20 }