reee
This commit is contained in:
parent
9471e48f65
commit
260eed30e3
2 changed files with 17 additions and 41 deletions
|
|
@ -1,53 +1,24 @@
|
||||||
{
|
{
|
||||||
config,
|
|
||||||
lib,
|
lib,
|
||||||
|
config,
|
||||||
...
|
...
|
||||||
}: let
|
}: {
|
||||||
cfg = config.myModules;
|
|
||||||
in {
|
|
||||||
options.myModules = {
|
options.myModules = {
|
||||||
games.enable = lib.mkOption {
|
games.enable = lib.mkOption {
|
||||||
type = lib.types.bool;
|
type = lib.types.bool;
|
||||||
default = false;
|
default = false;
|
||||||
description = "Enable games module.";
|
description = "Enable games module.";
|
||||||
};
|
};
|
||||||
|
|
||||||
dailyApps.enable = lib.mkOption {
|
|
||||||
type = lib.types.bool;
|
|
||||||
default = true;
|
|
||||||
description = "Enable daily applications.";
|
|
||||||
};
|
};
|
||||||
|
|
||||||
niri.enable = lib.mkOption {
|
|
||||||
type = lib.types.bool;
|
|
||||||
default = true;
|
|
||||||
description = "Enable niri wayland compositor config.";
|
|
||||||
};
|
|
||||||
|
|
||||||
nvf.enable = lib.mkOption {
|
|
||||||
type = lib.types.bool;
|
|
||||||
default = true;
|
|
||||||
description = "Enable nvf (neovim) configuration.";
|
|
||||||
};
|
|
||||||
|
|
||||||
shell.enable = lib.mkOption {
|
|
||||||
type = lib.types.bool;
|
|
||||||
default = true;
|
|
||||||
description = "Enable shell configuration.";
|
|
||||||
};
|
|
||||||
|
|
||||||
createProject.enable = lib.mkOption {
|
|
||||||
type = lib.types.bool;
|
|
||||||
default = true;
|
|
||||||
description = "Enable create-project tooling.";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
imports =
|
imports =
|
||||||
(lib.optional cfg.dailyApps.enable ./daily_apps.nix)
|
[
|
||||||
++ (lib.optional cfg.niri.enable ./niri.nix)
|
./daily_apps.nix
|
||||||
++ (lib.optional cfg.nvf.enable ./nvf.nix)
|
./niri.nix
|
||||||
++ (lib.optional cfg.shell.enable ./shell)
|
./nvf.nix
|
||||||
++ (lib.optional cfg.games.enable ./games/minecraft.nix)
|
./shell
|
||||||
++ (lib.optional cfg.createProject.enable ./create-project/create-project.nix);
|
./create-project/create-project.nix
|
||||||
|
]
|
||||||
|
++ lib.optionals config.myModules.games.enable [
|
||||||
|
./games
|
||||||
|
];
|
||||||
}
|
}
|
||||||
|
|
|
||||||
5
home/modules/games/default.nix
Normal file
5
home/modules/games/default.nix
Normal file
|
|
@ -0,0 +1,5 @@
|
||||||
|
{
|
||||||
|
imports = [
|
||||||
|
./minecraft.nix
|
||||||
|
];
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue