diff --git a/lib/default.nix b/lib/default.nix index bded2ea..804fedc 100644 --- a/lib/default.nix +++ b/lib/default.nix @@ -1,25 +1,5 @@ -{ - inputs, - config, - withSystem, - ... -}: +{ ... }: { flake.lib = { - mkNixos = sys: extraModules: - inputs.nixpkgs.lib.nixosSystem { - specialArgs = withSystem sys ({ inputs', self', ... }: - { inherit self' inputs' inputs; }); - modules = [ - inputs.nixpkgs.nixosModules.readOnlyPkgs - { nixpkgs.pkgs = withSystem sys ({ pkgs, ... }: pkgs); } - ] ++ extraModules; - }; - mkHome = sys: modules: - withSystem sys ({ pkgs, self', inputs', ... }: - inputs.home-manager.lib.homeManagerConfiguration { - inherit pkgs modules; - extraSpecialArgs = {inherit self' inputs' inputs;}; - }); }; }