mirror of
https://git.oat.zone/dark-firepit/dotfiles
synced 2024-04-28 08:45:04 +02:00
20 lines
377 B
Nix
20 lines
377 B
Nix
{ inputs, lib, pkgs, ... }:
|
|
|
|
let
|
|
inherit (lib) mkDefault nixosSystem;
|
|
in {
|
|
mkHost = system: path:
|
|
nixosSystem {
|
|
inherit system;
|
|
specialArgs = { inherit lib inputs system; };
|
|
modules = [
|
|
{
|
|
nixpkgs.pkgs = pkgs;
|
|
networking.hostName = mkDefault (baseNameOf path);
|
|
}
|
|
../.
|
|
(import path)
|
|
];
|
|
};
|
|
}
|