themes: Allow yaml paths
This commit is contained in:
parent
8e9ee08e09
commit
9109a98e9b
16 changed files with 95 additions and 489 deletions
22
nix/lib/default.nix
Normal file
22
nix/lib/default.nix
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
{ 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