stockholm/default.nix

13 lines
384 B
Nix
Raw Normal View History

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