ark/hosts/default.nix
2022-04-10 08:18:19 +03:00

34 lines
568 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";
};
in
lib.mapAttrs mkSystem systems