2018-11-30 11:27:47 +01:00
|
|
|
import <nixpkgs/nixos> {} // rec {
|
2018-03-20 20:12:13 +01:00
|
|
|
lib = import ./lib;
|
2018-11-30 11:27:47 +01:00
|
|
|
systems = with lib; let
|
|
|
|
namespace = getEnv "LOGNAME";
|
|
|
|
systemsDir = <stockholm> + "/${namespace}/1systems";
|
2018-03-20 20:12:13 +01:00
|
|
|
in
|
|
|
|
genAttrs
|
2018-11-30 11:27:47 +01:00
|
|
|
(attrNames (filterAttrs (_: eq "directory") (readDir systemsDir)))
|
|
|
|
(name: import <nixpkgs/nixos> {
|
|
|
|
configuration = import (systemsDir + "/${name}/config.nix");
|
2018-03-20 20:12:13 +01:00
|
|
|
});
|
|
|
|
}
|