add tools
This commit is contained in:
parent
b7f20f6199
commit
f95f2d389b
4 changed files with 19 additions and 2 deletions
|
@ -42,11 +42,14 @@
|
|||
|
||||
aspect = import ./modules inputs;
|
||||
hosts = import ./hosts;
|
||||
specialArgs = { inherit inputs hosts aspect; };
|
||||
specialArgs = {
|
||||
inherit inputs hosts aspect;
|
||||
toolsets = import ./tools;
|
||||
};
|
||||
mkNixOS' = lib: name: lib.nixosSystem {
|
||||
inherit system;
|
||||
inherit specialArgs;
|
||||
modules = [ hosts."${name}".nixos ];
|
||||
modules = [ hosts."${name}".nixos ./tools/inject.nix ];
|
||||
};
|
||||
mkNixOS = mkNixOS' lib;
|
||||
in {
|
||||
|
|
6
tools/default.nix
Normal file
6
tools/default.nix
Normal file
|
@ -0,0 +1,6 @@
|
|||
let toolsets = {
|
||||
meta = import ./meta.nix;
|
||||
};
|
||||
in toolsets // {
|
||||
all = args: (builtins.mapAttrs (_: x: x args) toolsets) // { inherit (toolsets) meta; };
|
||||
}
|
4
tools/inject.nix
Normal file
4
tools/inject.nix
Normal file
|
@ -0,0 +1,4 @@
|
|||
{ pkgs, lib, config, ... }:
|
||||
{
|
||||
_module.args.tools = (import ./.).all { inherit pkgs lib config; };
|
||||
}
|
4
tools/meta.nix
Normal file
4
tools/meta.nix
Normal file
|
@ -0,0 +1,4 @@
|
|||
rec {
|
||||
domain = "privatevoid.net";
|
||||
adminEmail = "admins@${domain}";
|
||||
}
|
Loading…
Reference in a new issue