generic-linux: prepare code for new options
This moves the enable option into an explicit attribute set to allow future addition of new options.
This commit is contained in:
parent
1f04af74f2
commit
b819d2cc41
|
@ -7,11 +7,13 @@ let
|
||||||
profileDirectory = config.home.profileDirectory;
|
profileDirectory = config.home.profileDirectory;
|
||||||
|
|
||||||
in {
|
in {
|
||||||
options.targets.genericLinux.enable = mkEnableOption "" // {
|
options.targets.genericLinux = {
|
||||||
description = ''
|
enable = mkEnableOption "" // {
|
||||||
Whether to enable settings that make Home Manager work better on
|
description = ''
|
||||||
GNU/Linux distributions other than NixOS.
|
Whether to enable settings that make Home Manager work better on
|
||||||
'';
|
GNU/Linux distributions other than NixOS.
|
||||||
|
'';
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
config = mkIf config.targets.genericLinux.enable {
|
config = mkIf config.targets.genericLinux.enable {
|
||||||
|
|
Loading…
Reference in a new issue