about summary refs log tree commit diff
path: root/ops/nixos/default.nix
blob: 02a42425fdc6033e074d4391970e3ca8c889008d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
{ pkgs, ... }:

let
  inherit (pkgs) lib;
  inherit (builtins) foldl';

  systemFor = configs: (pkgs.third_party.nixos {
    configuration = lib.fix(config:
      foldl' lib.recursiveUpdate {} (map (c: c config) configs)
    );
  }).system;
in {
  # TODO(tazjin): rename 'pkgs' -> 'depot'?
  nuggetSystem = systemFor [ pkgs.ops.nixos.nugget ];
}