forked from nix-community/nixvim
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwrappers.nix
More file actions
40 lines (39 loc) · 1.02 KB
/
wrappers.nix
File metadata and controls
40 lines (39 loc) · 1.02 KB
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
31
32
33
34
35
36
37
38
39
40
{
lib,
extendModules,
config,
...
}:
{
options.build = {
nixosModule = lib.mkOption {
type = lib.types.deferredModule;
description = "A NixOS module that installs this Nixvim configuration.";
readOnly = true;
};
homeModule = lib.mkOption {
type = lib.types.deferredModule;
description = "A Home Manager module that installs this Nixvim configuration.";
readOnly = true;
};
nixDarwinModule = lib.mkOption {
type = lib.types.deferredModule;
description = "A nix-darwin module that installs this Nixvim configuration.";
readOnly = true;
};
};
config.build = {
nixosModule = lib.modules.importApply ../wrappers/nixos.nix {
self = config.flake;
inherit extendModules;
};
homeModule = lib.modules.importApply ../wrappers/hm.nix {
self = config.flake;
inherit extendModules;
};
nixDarwinModule = lib.modules.importApply ../wrappers/darwin.nix {
self = config.flake;
inherit extendModules;
};
};
}