mirror of
https://git.oat.zone/dark-firepit/dotfiles
synced 2024-11-23 02:12:26 +01:00
22 lines
388 B
Nix
Executable File
22 lines
388 B
Nix
Executable File
{ lib, inputs, pkgs, ... }:
|
|
|
|
let
|
|
inherit (lib) nixosSystem mkDefault;
|
|
in {
|
|
/*
|
|
*/
|
|
mkHost = system: path:
|
|
nixosSystem {
|
|
inherit system;
|
|
specialArgs = { inherit lib inputs system; };
|
|
modules = [
|
|
{
|
|
nixpkgs.pkgs = pkgs;
|
|
networking.hostName = mkDefault (baseNameOf path);
|
|
}
|
|
../.
|
|
(import path)
|
|
];
|
|
};
|
|
}
|