mirror of
https://git.oat.zone/dark-firepit/dotfiles
synced 2024-11-23 02:12:26 +01:00
9da0a143ae
Co-authored-by: Jill Monoids <oatmealine@disroot.org>
22 lines
437 B
Nix
22 lines
437 B
Nix
{ inputs, lib, pkgs, ... }:
|
|
|
|
with lib;
|
|
{
|
|
mkHost = path: attrs@{ system, ... }:
|
|
nixosSystem {
|
|
inherit system;
|
|
specialArgs = { inherit lib inputs system; };
|
|
modules = [
|
|
{
|
|
nixpkgs.pkgs = pkgs;
|
|
networking.hostName = mkDefault (removeSuffix ".nix" (baseNameOf path));
|
|
}
|
|
(filterAttrs (n: v: !elem n [ "system" ]) attrs)
|
|
|
|
../.
|
|
|
|
(import path)
|
|
];
|
|
};
|
|
}
|