aboutsummaryrefslogtreecommitdiff
path: root/flake/scripts/default.nix
blob: db6febe28d764289262f06b481c0e47c387d047d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
{
  pkgs,
  system,
  inputs,
}:
let
  common = import ./common.nix { inherit pkgs; };
  darwin = import ./darwin.nix { inherit pkgs system inputs; };
in
{
  common = common;
  darwin = if pkgs.lib.hasSuffix "darwin" system then darwin else [ ];

  all = common ++ (if pkgs.lib.hasSuffix "darwin" system then darwin else [ ]);
}