From 2f372ab4d670c2b685a8f603d078cf3ddfa7e6cd Mon Sep 17 00:00:00 2001 From: Robert Helgesson Date: Sat, 9 Feb 2019 15:08:16 +0100 Subject: 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. --- nix-darwin/default.nix | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'nix-darwin') diff --git a/nix-darwin/default.nix b/nix-darwin/default.nix index c2ec350cbc0..810b3e5ee90 100644 --- a/nix-darwin/default.nix +++ b/nix-darwin/default.nix @@ -7,12 +7,10 @@ let cfg = config.home-manager; hmModule = types.submodule ({name, ...}: { - imports = import ../modules/modules.nix { - inherit lib pkgs; - nixosSubmodule = true; - }; + imports = import ../modules/modules.nix { inherit lib pkgs; }; config = { + submoduleSupport.enable = true; home.username = config.users.users.${name}.name; home.homeDirectory = config.users.users.${name}.home; }; -- cgit v1.2.3