Modularize hardware config and remove specific nix folder
This commit is contained in:
parent
a5042bb645
commit
9ac5b25036
72 changed files with 322 additions and 100 deletions
|
|
@ -1,22 +0,0 @@
|
|||
{ inputs, pkgs, ... }: {
|
||||
build_systems = systems: builtins.listToAttrs (map (name: {
|
||||
name = name;
|
||||
value =
|
||||
let
|
||||
mod = ../hardware/${name}/configuration.nix;
|
||||
in
|
||||
inputs.nixpkgs.lib.nixosSystem {
|
||||
specialArgs = {
|
||||
inherit inputs pkgs mod;
|
||||
};
|
||||
modules = [
|
||||
inputs.home-manager.nixosModules.home-manager
|
||||
inputs.stylix.nixosModules.stylix
|
||||
../base
|
||||
../programs
|
||||
mod
|
||||
] ++ inputs.nixpkgs.lib.optional (builtins.pathExists ../hardware/${name}/${name}.nix) ../hardware/${name}/${name}.nix
|
||||
++ inputs.nixpkgs.lib.optional (builtins.pathExists mod) mod;
|
||||
};
|
||||
} )systems);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue