41 lines
836 B
Nix
41 lines
836 B
Nix
let
|
|
mods = import ./modules;
|
|
users = import ./users;
|
|
sources = import ./npins;
|
|
inherit (import sources.nix-patches { patchFile = ./patches; }) mkNixpkgsSrc;
|
|
inherit
|
|
(import (mkNixpkgsSrc {
|
|
src = sources.nixpkgs;
|
|
version = "unstable";
|
|
}) { })
|
|
lib
|
|
;
|
|
in
|
|
{
|
|
meta = {
|
|
nixpkgs = mkNixpkgsSrc {
|
|
src = sources.nixpkgs;
|
|
version = "unstable";
|
|
};
|
|
nodeNixpkgs."kat-mail-test" = mkNixpkgsSrc {
|
|
src = sources.nixpkgs;
|
|
version = "betamail";
|
|
};
|
|
specialArgs = {
|
|
inherit mods users sources;
|
|
};
|
|
};
|
|
defaults =
|
|
{
|
|
name,
|
|
...
|
|
}:
|
|
{
|
|
imports = [ ./kat ];
|
|
networking.hostName = name;
|
|
};
|
|
}
|
|
// lib.mapAttrs' (name: _: {
|
|
name = lib.removeSuffix ".nix" name;
|
|
value = import ./machines/${name};
|
|
}) (builtins.readDir ./machines)
|