summary refs log tree commit diff
path: root/nix/eval-config.nix
blob: 8ba774419eea4b446a765fc9e4873f91cdd25388 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# 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;

  src = import ./src.nix { inherit (pkgs) lib; };
}) config