Clean up support code for Home Manager as a submodule

This removes the `nixosSubmodule` option in favor of a new option
`submoduleSupport.enable`. This name better indicates that the
submodule mode applies to both NixOS and nix-darwin.
This commit is contained in:
Robert Helgesson 2019-02-09 15:08:16 +01:00
parent 524ce43e23
commit 2f372ab4d6
No known key found for this signature in database
GPG key ID: 36BDAA14C2797E89
5 changed files with 25 additions and 19 deletions

View file

@ -32,7 +32,7 @@ in
};
};
config = mkIf (cfg.enable && !config.nixosSubmodule) {
config = mkIf (cfg.enable && !config.submoduleSupport.enable) {
home.packages = [
(import ../../home-manager {
inherit pkgs;