aboutsummaryrefslogtreecommitdiff
path: root/nix-darwin
diff options
context:
space:
mode:
authorRobert Helgesson <robert@rycee.net>2019-02-09 15:08:16 +0100
committerRobert Helgesson <robert@rycee.net>2019-02-10 00:44:55 +0100
commit2f372ab4d670c2b685a8f603d078cf3ddfa7e6cd (patch)
tree1c8f9e097faf9a3f1549574c55e8911cf7caf93d /nix-darwin
parent524ce43e233be08d77b4ad813e4e79a7fef65cee (diff)
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.
Diffstat (limited to 'nix-darwin')
-rw-r--r--nix-darwin/default.nix6
1 files changed, 2 insertions, 4 deletions
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;
};