ark/hosts/default.nix
2022-07-30 04:39:01 +03:00

36 lines
631 B
Nix

{
inputs,
lib,
tlib,
...
}: let
baseModules = [
../modules
../secrets
../locale
inputs.home.nixosModule
];
mkSystem = name: system: let
pkgs = tlib.makePkgs system;
in
lib.nixosSystem {
inherit system;
modules =
baseModules
++ [
{networking.hostName = name;}
{nixpkgs.pkgs = pkgs;}
(import (./. + "/${name}/default.nix"))
];
specialArgs = {inherit inputs tlib;};
};
systems = {
lungmen = "x86_64-linux";
tkaronto = "x86_64-linux";
wolumonde = "x86_64-linux";
};
in
lib.mapAttrs mkSystem systems