started modifing configuration structure

This commit is contained in:
2024-12-22 16:56:40 +09:00
parent 1030d3e37f
commit 87d132cb4f
37 changed files with 272 additions and 32 deletions

23
hosts/default.nix Normal file
View File

@@ -0,0 +1,23 @@
{ self, nixpkgs, ... }: { systemSettings, userSettings, ... }:
let
inherit (self) inputs;
inherit systemSettings userSettings;
mkHost = name:
nixpkgs.lib.nixosSystem {
modules = [
./${name}
{
nixpkgs.hostPlatform = systemSettings.system;
}
] ++ builtins.attrValues self.nixosModules;
specialArgs = {
inherit inputs;
inherit systemSettings;
inherit userSettings;
};
};
in
{
syushiki = mkHost "syushiki";
}