From b819d2cc414e0d14fd078551399f58c087a72ae7 Mon Sep 17 00:00:00 2001 From: Damien Cassou Date: Wed, 9 Sep 2020 21:52:57 +0200 Subject: [PATCH] generic-linux: prepare code for new options This moves the enable option into an explicit attribute set to allow future addition of new options. --- modules/targets/generic-linux.nix | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/modules/targets/generic-linux.nix b/modules/targets/generic-linux.nix index bdb27926f..a2d4189f4 100644 --- a/modules/targets/generic-linux.nix +++ b/modules/targets/generic-linux.nix @@ -7,11 +7,13 @@ let profileDirectory = config.home.profileDirectory; in { - options.targets.genericLinux.enable = mkEnableOption "" // { - description = '' - Whether to enable settings that make Home Manager work better on - GNU/Linux distributions other than NixOS. - ''; + options.targets.genericLinux = { + enable = mkEnableOption "" // { + description = '' + Whether to enable settings that make Home Manager work better on + GNU/Linux distributions other than NixOS. + ''; + }; }; config = mkIf config.targets.genericLinux.enable {