summaryrefslogtreecommitdiffstats
path: root/default.nix
blob: 45b4f03f611f865528e19c4865e0198c03f3594a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
import <nixpkgs/nixos> {} // rec {
  lib = import ./lib;
  systems = with lib; let
    namespace = krebs;
    systemsDir = <stockholm> + "/${namespace}/1systems";
  in
    genAttrs
      (attrNames (filterAttrs (_: eq "directory") (readDir systemsDir)))
      (name: import <nixpkgs/nixos> {
        configuration = import (systemsDir + "/${name}/config.nix");
      });
}