started modifing configuration structure
This commit is contained in:
23
hosts/default.nix
Normal file
23
hosts/default.nix
Normal 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";
|
||||
}
|
||||
Reference in New Issue
Block a user