summary refs log blame commit diff
path: root/nix/eval-config.nix
blob: 467f877330163f35a15dcff62b2f27416228548e (plain) (tree)
1
2
3
4
5
6
7
8



                                     



                                                                     




                                  
# SPDX-License-Identifier: MIT
# SPDX-FileCopyrightText: 2022 Unikie

{ config ?
  let customPath = builtins.tryEval <spectrum-config>; in
  if customPath.success then import customPath.value
  else if builtins.pathExists ../config.nix then import ../config.nix
  else {}
}:

({ pkgs ? import <nixpkgs> {} }: {
  inherit pkgs;
}) config