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