2022-04-09 21:33:13 +03:00
|
|
|
{
|
|
|
|
inputs,
|
|
|
|
lib,
|
2022-04-10 05:48:34 +03:00
|
|
|
tlib,
|
|
|
|
...
|
2022-04-09 21:33:13 +03:00
|
|
|
}: let
|
|
|
|
baseModules = [
|
|
|
|
../modules
|
|
|
|
../secrets
|
|
|
|
../locale
|
|
|
|
inputs.home.nixosModule
|
|
|
|
];
|
|
|
|
|
|
|
|
mkSystem = name: system: let
|
2022-04-10 05:48:34 +03:00
|
|
|
pkgs = tlib.makePkgs system;
|
2022-04-09 21:33:13 +03:00
|
|
|
in
|
|
|
|
lib.nixosSystem {
|
|
|
|
inherit system;
|
2022-04-09 22:01:44 +03:00
|
|
|
modules =
|
|
|
|
baseModules
|
|
|
|
++ [
|
2022-04-10 08:18:19 +03:00
|
|
|
{networking.hostName = name;}
|
2022-04-10 05:48:34 +03:00
|
|
|
{nixpkgs.pkgs = pkgs;}
|
2022-04-09 22:01:44 +03:00
|
|
|
(import (./. + "/${name}/default.nix"))
|
|
|
|
];
|
2022-04-10 05:48:34 +03:00
|
|
|
specialArgs = {inherit inputs tlib;};
|
2022-04-09 21:33:13 +03:00
|
|
|
};
|
2022-04-10 05:48:34 +03:00
|
|
|
|
|
|
|
systems = {
|
|
|
|
lungmen = "x86_64-linux";
|
2022-07-18 19:34:54 +03:00
|
|
|
tkaronto = "x86_64-linux";
|
2022-04-10 05:48:34 +03:00
|
|
|
};
|
|
|
|
in
|
|
|
|
lib.mapAttrs mkSystem systems
|