extract hardware config
This commit is contained in:
parent
252fcce589
commit
effb6e6397
22 changed files with 31 additions and 1158 deletions
|
|
@ -1,8 +1,12 @@
|
|||
{ inputs, pkgs, ... }: {
|
||||
build_systems = systems:
|
||||
{ inputs, pkgs, ... }:
|
||||
let
|
||||
in {
|
||||
build_systems = systems: root:
|
||||
builtins.listToAttrs (map (name: {
|
||||
name = name;
|
||||
value = let mod = ../hardware/${name}/configuration.nix;
|
||||
value = let
|
||||
mod = root + /${name}/configuration.nix;
|
||||
additionalConfig = root + /${name}/${name}.nix;
|
||||
in inputs.nixpkgs.lib.nixosSystem {
|
||||
specialArgs = { inherit inputs pkgs mod; };
|
||||
modules = [
|
||||
|
|
@ -10,10 +14,10 @@
|
|||
inputs.stylix.nixosModules.stylix
|
||||
../base
|
||||
../programs
|
||||
../modules
|
||||
mod
|
||||
] ++ inputs.nixpkgs.lib.optional
|
||||
(builtins.pathExists ../hardware/${name}/${name}.nix)
|
||||
../hardware/${name}/${name}.nix
|
||||
] ++ inputs.nixpkgs.lib.optional (builtins.pathExists additionalConfig)
|
||||
additionalConfig
|
||||
++ inputs.nixpkgs.lib.optional (builtins.pathExists mod) mod;
|
||||
};
|
||||
}) systems);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue