diff --git a/darwin/base/home.nix b/darwin/base/home.nix deleted file mode 100644 index 96ab0336..00000000 --- a/darwin/base/home.nix +++ /dev/null @@ -1,17 +0,0 @@ -{ meta, config, inputs, tf, lib, ... }: with lib; { - options.home-manager.users = mkOption { - type = types.attrsOf (types.submoduleWith { - modules = singleton meta.modules.home; - specialArgs = { - inherit inputs tf meta; - nixos = config; - }; - }); - }; - config = { - home-manager = { - useGlobalPkgs = true; - useUserPackages = true; - }; - }; -} diff --git a/nixos/base/home.nix b/nixos/base/home.nix deleted file mode 100644 index 35b4b9c8..00000000 --- a/nixos/base/home.nix +++ /dev/null @@ -1,22 +0,0 @@ -{ meta, config, lib, inputs, tf, ... }: - -with lib; - -{ - options.home-manager.users = mkOption { - type = types.attrsOf (types.submoduleWith { - modules = singleton meta.modules.home; - specialArgs = { - inherit inputs tf meta; - nixos = config; - }; - }); - }; - - config = { - home-manager = { - useUserPackages = true; - useGlobalPkgs = true; - }; - }; -} diff --git a/system/home.nix b/system/home.nix new file mode 100644 index 00000000..9cc22ed7 --- /dev/null +++ b/system/home.nix @@ -0,0 +1,17 @@ +{ meta, config, lib, inputs, tf, ... }: + +with lib; + +{ + home-manager = { + extraSpecialArgs = { + inherit inputs tf meta; + nixos = config; + }; + sharedModules = [ + meta.modules.home + ]; + useUserPackages = true; + useGlobalPkgs = true; + }; +}