mirror of
https://git.oat.zone/dark-firepit/dotfiles
synced 2024-11-23 02:12:26 +01:00
22 lines
388 B
Nix
22 lines
388 B
Nix
|
{ 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)
|
||
|
];
|
||
|
};
|
||
|
}
|