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