-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathflakeModule.nix
More file actions
33 lines (31 loc) · 765 Bytes
/
flakeModule.nix
File metadata and controls
33 lines (31 loc) · 765 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
31
32
33
{ config, lib, inputs, flake-parts-lib, ... }: let
inherit (lib)
mkOption
types
;
inherit (flake-parts-lib)
mkSubmoduleOptions
;
in {
options = {
# compatibility layer for home-manager
flake.homeConfigurations = mkOption {
type = types.lazyAttrsOf types.raw;
default = { };
};
nix-config = mkOption {
type = types.submoduleWith {
modules = (import ./modules/all-modules.nix) ++ [
{ _module.args.inputs = inputs; }
];
};
};
};
config = {
flake = {
darwinConfigurations = config.nix-config.darwinConfigurations;
homeConfigurations = config.nix-config.homeConfigurations;
nixosConfigurations = config.nix-config.nixosConfigurations;
};
};
}