2024-05-14 19:21:19 +02:00
|
|
|
let
|
2024-03-13 11:11:16 +01:00
|
|
|
mods = import ./modules;
|
|
|
|
users = import ./users;
|
2024-06-01 00:28:17 +02:00
|
|
|
sources = import ./npins;
|
2024-11-14 15:30:17 +01:00
|
|
|
inherit (import sources.nix-patches { patchFile = ./patches; }) mkNixpkgsSrc;
|
|
|
|
inherit
|
2024-10-27 10:47:35 +01:00
|
|
|
(import (mkNixpkgsSrc {
|
|
|
|
src = sources.nixpkgs;
|
|
|
|
version = "unstable";
|
2024-11-14 15:30:17 +01:00
|
|
|
}) { })
|
|
|
|
lib
|
|
|
|
;
|
2024-05-14 19:21:19 +02:00
|
|
|
in
|
|
|
|
{
|
2024-07-26 21:22:44 +02:00
|
|
|
meta = {
|
|
|
|
nixpkgs = mkNixpkgsSrc {
|
|
|
|
src = sources.nixpkgs;
|
|
|
|
version = "unstable";
|
|
|
|
};
|
|
|
|
nodeNixpkgs."kat-mail-test" = mkNixpkgsSrc {
|
|
|
|
src = sources.nixpkgs;
|
|
|
|
version = "betamail";
|
|
|
|
};
|
|
|
|
specialArgs = {
|
|
|
|
inherit mods users sources;
|
|
|
|
};
|
2024-03-13 11:11:16 +01:00
|
|
|
};
|
2024-05-14 19:21:19 +02:00
|
|
|
defaults =
|
2024-06-01 16:26:08 +02:00
|
|
|
{
|
|
|
|
name,
|
|
|
|
...
|
|
|
|
}:
|
2024-05-14 19:21:19 +02:00
|
|
|
{
|
2024-10-27 10:47:35 +01:00
|
|
|
imports = [ ./kat ];
|
2024-09-26 11:51:04 +02:00
|
|
|
networking.hostName = name;
|
2024-05-14 19:21:19 +02:00
|
|
|
};
|
2024-03-12 17:26:16 +01:00
|
|
|
}
|
2024-10-27 10:47:35 +01:00
|
|
|
// lib.mapAttrs' (name: _: {
|
|
|
|
name = lib.removeSuffix ".nix" name;
|
|
|
|
value = import ./machines/${name};
|
|
|
|
}) (builtins.readDir ./machines)
|