fix(nixosModule): Add missing option defaults

This commit is contained in:
Jalil David Salamé Messina 2024-01-15 22:57:01 +01:00
parent bd01ac572b
commit a539aa467f
Signed by: jalil
GPG key ID: F016B9E770737A0B

View file

@ -18,6 +18,7 @@ let
steamHardwareSupport = mkDisableOption "steam hardware support"; steamHardwareSupport = mkDisableOption "steam hardware support";
ydotool = lib.mkOption { ydotool = lib.mkOption {
description = lib.mdDoc "Jalil's default ydotool configuration."; description = lib.mdDoc "Jalil's default ydotool configuration.";
default = { };
type = types.submodule { type = types.submodule {
options.enable = mkDisableOption "ydotool"; options.enable = mkDisableOption "ydotool";
options.autoStart = mkDisableOption "autostarting ydotool at login"; options.autoStart = mkDisableOption "autostarting ydotool at login";
@ -50,10 +51,12 @@ let
enable = lib.mkEnableOption "jalil's default configuration."; enable = lib.mkEnableOption "jalil's default configuration.";
gui = lib.mkOption { gui = lib.mkOption {
description = lib.mdDoc "Jalil's default configuration for a NixOS gui."; description = lib.mdDoc "Jalil's default configuration for a NixOS gui.";
default = { };
type = types.submodule gui; type = types.submodule gui;
}; };
styling = lib.mkOption { styling = lib.mkOption {
description = "Jalil's styling options"; description = "Jalil's styling options";
default = { };
type = types.submodule styling; type = types.submodule styling;
}; };
importSSHKeysFromGithub = lib.mkOption { importSSHKeysFromGithub = lib.mkOption {
@ -74,6 +77,7 @@ in
{ {
options.jconfig = lib.mkOption { options.jconfig = lib.mkOption {
description = lib.mdDoc "Jalil's default NixOS configuration."; description = lib.mdDoc "Jalil's default NixOS configuration.";
default = { };
type = types.submodule config; type = types.submodule config;
}; };
} }