flake: rewrite to use flake-parts

This commit is contained in:
Infinidoge 2023-07-28 15:30:10 -04:00
parent 728a071b52
commit 50debb5dec
21 changed files with 445 additions and 760 deletions

12
lib/hosts.nix Normal file
View file

@ -0,0 +1,12 @@
{ lib }:
{
mkHost = attrs@{ modules ? [ ], ... }: name: path: lib.nixosSystem (attrs // {
modules = [
{
networking.hostName = lib.mkDefault name;
}
(import path)
] ++ attrs.modules;
});
}