ark/hosts/default.nix
2023-05-05 03:30:46 +03:00

35 lines
616 B
Nix

{
inputs,
lib,
tlib,
...
}: let
baseModules = [
../modules
../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