-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtools.nix
More file actions
30 lines (30 loc) · 776 Bytes
/
tools.nix
File metadata and controls
30 lines (30 loc) · 776 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
{ lib, flake-parts-lib, ... }:
let
inherit (flake-parts-lib) mkTransposedPerSystemModule;
inherit (lib) types mkOption;
toolsModule = mkTransposedPerSystemModule {
name = "tools";
option = mkOption {
type = with types; lazyAttrsOf (anything);
default = { };
description = ''
An attribute set of library functions or data that depends on system
'';
};
file = ./tools.nix;
};
libModule = mkTransposedPerSystemModule {
name = "lib";
option = mkOption {
type = with types; lazyAttrsOf (anything);
default = { };
description = ''
An attribute set of library functions or data that depends on system
'';
};
file = ./lib.nix;
};
in
{
imports = [ toolsModule libModule ];
}