diff --git a/modules/common/profiles/default.nix b/modules/common/profiles/default.nix index d899bc7b..43d5a84c 100644 --- a/modules/common/profiles/default.nix +++ b/modules/common/profiles/default.nix @@ -1,5 +1,5 @@ # Configuration that spans accross system and home, or are almagations of modules -{ config, lib, type, ... }: +{ ... }: { imports = [ ./bluetooth @@ -9,17 +9,4 @@ ./wm ./x ]; - - config = lib.mkMerge [ - # Transparently enable home-manager profiles as well - (lib.optionalAttrs (type == "nixos") { - home-manager.users.${config.my.user.name} = { - config = { - my = { - inherit (config.my) profiles; - }; - }; - }; - }) - ]; } diff --git a/modules/nixos/home/default.nix b/modules/nixos/home/default.nix index 202a63b4..384692dc 100644 --- a/modules/nixos/home/default.nix +++ b/modules/nixos/home/default.nix @@ -19,6 +19,13 @@ in "${inputs.self}/modules/common" "${inputs.self}/modules/home" ]; + + config = { + my = { + # Transparently enable home-manager profiles as well + inherit (config.my) profiles; + }; + }; }; # Nix Flakes compatibility