refactor in synaptic style
This commit is contained in:
parent
ce295da1c1
commit
a3a33e7ec1
119 changed files with 1093 additions and 3109 deletions
23
util/create.nix
Normal file
23
util/create.nix
Normal file
|
@ -0,0 +1,23 @@
|
|||
let
|
||||
inputs = import ./inputs.nix;
|
||||
inherit (inputs) nixpkgs;
|
||||
inherit (nixpkgs) lib;
|
||||
recursivelyImport = import ./recursively-import.nix { inherit lib; };
|
||||
in
|
||||
{
|
||||
systems =
|
||||
definitions:
|
||||
lib.mapAttrs (
|
||||
name: info:
|
||||
lib.nixosSystem {
|
||||
specialArgs = {
|
||||
inherit inputs;
|
||||
mainUser = info.user;
|
||||
};
|
||||
modules = [
|
||||
inputs.home-manager.nixosModules.home-manager
|
||||
(lib.mkAliasOptionModule [ "hm" ] [ "home-manager" "users" info.user ])
|
||||
] ++ (recursivelyImport info.imports);
|
||||
}
|
||||
) definitions;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue