1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-09-30 02:07:28 +02:00

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:
Damien Cassou 2020-09-09 21:52:57 +02:00 committed by Robert Helgesson
parent 1f04af74f2
commit b819d2cc41
No known key found for this signature in database
GPG key ID: 36BDAA14C2797E89

View file

@ -7,12 +7,14 @@ let
profileDirectory = config.home.profileDirectory; profileDirectory = config.home.profileDirectory;
in { in {
options.targets.genericLinux.enable = mkEnableOption "" // { options.targets.genericLinux = {
enable = mkEnableOption "" // {
description = '' description = ''
Whether to enable settings that make Home Manager work better on Whether to enable settings that make Home Manager work better on
GNU/Linux distributions other than NixOS. GNU/Linux distributions other than NixOS.
''; '';
}; };
};
config = mkIf config.targets.genericLinux.enable { config = mkIf config.targets.genericLinux.enable {
home.sessionVariables = let home.sessionVariables = let