All Extensions
This section describes all official Denix extensions.
Args
Name | args |
---|---|
Description | More convenient way to configure _module.args via myconfig |
Maintainers | yunfachi (GitHub, Telegram) |
Settings
Name | Default Value | Description |
---|---|---|
path | "args" | Path in myconfig where options will be created |
Base
Name | base |
---|---|
Description | Creates feature-rich and fine-tunable modules for hosts and rices with minimal effort |
Maintainers | yunfachi (GitHub, Telegram) |
Settings
Name | Default Value | Description |
---|---|---|
enableAll | true | Default value for hosts.enable and rices.enable |
args
Name Default Value Description enable
false
Default value for hosts.args.enable
andrices.args.enable
path
"args"
Default value for hosts.args.path
andrices.args.path
assertions
Name Default Value Description enable
true
Default value for hosts.assertions.enable
andrices.assertions.enable
moduleSystem
"home-manager"
Default value for hosts.assertions.moduleSystem
andrices.assertions.moduleSystem
hosts
Name Default Value Description enable
enableAll
Whether to create the hosts module
hosts.args
Name Default Value Description enable
args.enable
Whether to create host
andhosts
arguments with theargs
extensionpath
args.path
Path to options of the args
extension
hosts.assertions
Name Default Value Description enable
assertions.enable
Whether to add delib.hostNamesAssertions
to theassertions
option of the specified module systemmoduleSystem
assertions.moduleSystem
Module system to which assertions will be added. Any value is allowed, even "myconfig"
if you have a dedicated module for that. Values"home-manager"
and"nix-darwin"
will be automatically converted to"home"
and"darwin"
respectively
hosts.type
Name Default Value Description enable
true
Whether to create an enum option type
in the host submodulegenerateIsType
true
Whether to generate a boolean option for each value in hosts.type.types
, formatted as"is{Type}"
types
["desktop" "server"]
All allowed values for the type
option in the host submodule. Note: to append to the list rather than overwrite it, use:types = prev.types ++ ["newType"];
hosts.features
Name Default Value Description enable
true
Whether to create the features
option with an enum-list type in the host submodulegenerateIsFeatured
true
Whether to generate a boolean option for each value in hosts.features.features
, formatted as"{feature}Featured"
features
[]
All allowed values for the features
option in the host submoduledefault
[]
Default value for the features
option in the host submoduledefaultByHostType
{}
Attrset where keys are one of the hosts.type.types
values and values are lists similar tohosts.features.default
. Merged withhosts.features.default
and the list whose key matches the value of thetype
option in the host submodule
hosts.displays
Name Default Value Description enable
true
Whether to create the displays
option in the host submodule. Its type is a list of submodules with the following options:enable
(bool; defaulttrue
),name
(str; no default),primary
(bool; defaulttrue
, but only if thedisplays
options in the host submodule contains one item),touchscreen
(bool; defaultfalse
),refreshRate
(int; default60
),width
(int; default1920
),height
(int; default1080
),x
(int; default0
),y
(int; default0
)
rices
Name Default Value Description enable
enableAll
Whether to create the rices module
rices.args
Name Default Value Description enable
args.enable
Whether to create rice
andrices
arguments using theargs
extensionpath
args.path
Path to options of the args
extension
rices.assertions
Name Default Value Description enable
assertions.enable
Whether to add delib.riceNamesAssertions
to theassertions
option of the specified module systemmoduleSystem
assertions.moduleSystem
Module system to which assertions will be added. Any value is allowed, even "myconfig"
if you have a dedicated module for that."home-manager"
and"nix-darwin"
will be automatically converted to"home"
and"darwin"
respectively
User
WIP