mirror of
https://github.com/materusPL/nixos-config
synced 2026-06-19 00:47:22 +02:00
30 lines
455 B
Nix
30 lines
455 B
Nix
isHm:
|
|
{
|
|
lib,
|
|
materusArgs,
|
|
config,
|
|
...
|
|
}:
|
|
{
|
|
|
|
options.mkk.dir = lib.mkOption {
|
|
default = "${materusArgs.flake-path}";
|
|
type = lib.types.path;
|
|
};
|
|
|
|
options.mkk.var = lib.mkOption {
|
|
default = { };
|
|
type = lib.types.attrs;
|
|
};
|
|
|
|
imports = [
|
|
./nix.nix
|
|
]
|
|
++ lib.optionals isHm [ ./hm ]
|
|
++ lib.optionals (!isHm) [ ./os ];
|
|
|
|
config.mkk.var = import ./private/variables.nix {};
|
|
config._module.args.mkk = config.mkk.var;
|
|
|
|
}
|