feat: Add jconfig.dev.enable option

Currently it only enables dev documentation, but maybe I'll add more
stuff.
This commit is contained in:
Jalil David Salamé Messina 2024-03-02 18:56:30 +01:00
parent 3da158a7fa
commit f01a1463fe
Signed by: jalil
GPG key ID: F016B9E770737A0B
2 changed files with 10 additions and 0 deletions

View file

@ -46,6 +46,9 @@ in
pkgs.unzip
];
# Enable dev documentation
documentation.dev.enable = cfg.dev.enable;
# Shell prompt
programs.starship.enable = true;
programs.starship.settings = lib.mkIf cfg.styling.enable {

View file

@ -45,6 +45,13 @@ let
config.options = {
enable = lib.mkEnableOption "jalil's default configuration.";
dev = lib.mkOption {
description = lib.mdDoc "Options for setting up a dev environment";
default = { };
type = types.submodule {
options.enable = lib.mkEnableOption "dev configuration";
};
};
gui = lib.mkOption {
description = lib.mdDoc "Jalil's default configuration for a NixOS gui.";
default = { };