foot, vintage fonts, scope operator
This commit is contained in:
parent
8d77e96d89
commit
5575604452
46 changed files with 803 additions and 702 deletions
33
lib/create.nix
Normal file
33
lib/create.nix
Normal file
|
@ -0,0 +1,33 @@
|
|||
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;
|
||||
inherit (info) system;
|
||||
localPkgs = lib.packagesFromDirectoryRecursive {
|
||||
inherit (inputs.nixpkgs.legacyPackages.${info.system}) callPackage;
|
||||
directory = ../pkgs;
|
||||
};
|
||||
scope = import ./scope.nix { inherit lib; };
|
||||
mainUser = info.username;
|
||||
getPkgs = builtins.attrValues;
|
||||
};
|
||||
modules = [
|
||||
inputs.home-manager.nixosModules.home-manager
|
||||
inputs.hjem.nixosModules.hjem
|
||||
(lib.mkAliasOptionModule [ "hm" ] [ "home-manager" "users" info.username ])
|
||||
(lib.mkAliasOptionModule [ "home" ] [ "hjem" "users" info.username ])
|
||||
]
|
||||
++ (recursivelyImport info.imports);
|
||||
}
|
||||
) definitions;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue