diff options
author | Damien Cassou <damien@cassou.me> | 2020-09-09 21:52:57 +0200 |
---|---|---|
committer | Robert Helgesson <robert@rycee.net> | 2020-09-11 12:26:54 +0200 |
commit | b819d2cc414e0d14fd078551399f58c087a72ae7 (patch) | |
tree | 617b8b1941ca46d73dad94af366682eb8ff40c35 | |
parent | 1f04af74f2d88e568ef16fe2b39982d59c24a64c (diff) |
generic-linux: prepare code for new options
This moves the enable option into an explicit attribute set to allow
future addition of new options.
-rw-r--r-- | modules/targets/generic-linux.nix | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/modules/targets/generic-linux.nix b/modules/targets/generic-linux.nix index bdb27926fbc..a2d4189f401 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 { |