From f16d7d316d4b81c5cfccb956e2e67e101cebb95c Mon Sep 17 00:00:00 2001 From: NullBite Date: Mon, 15 Jul 2024 11:41:13 -0400 Subject: [PATCH] flake.nix: remove mkExtraPkgs function Overlays are a much better way to inject custom packages --- README.md | 1 - flake.nix | 11 ----------- 2 files changed, 12 deletions(-) diff --git a/README.md b/README.md index c612fb0..b395891 100644 --- a/README.md +++ b/README.md @@ -15,7 +15,6 @@ stuff may not match yet): - inputs: all specified flake inputs - vars: attrset of variables that are passed to modules - The flake also has multiple helper functions: - - `mkExtraPkgs`: Produce a set of packages for the given system - `eachSystem :: (system -> attrset) -> attrset`: Generate an attrset of default systems (used for packages) - `homeManagerInit`: Generate a NixOS Module that initializes diff --git a/flake.nix b/flake.nix index 098ea51..0318ebe 100644 --- a/flake.nix +++ b/flake.nix @@ -130,13 +130,6 @@ # My current timezone for any mobile devices (i.e., my laptop) mobileTimeZone = "America/New_York"; - # TODO this was something for android-tools. overlays are a better way to - # define packages anyway, probably remove this. - # - # define extra packages here - mkExtraPkgs = system: { - }; - # Variables to be passed to NixOS modules in the vars attrset vars = { inherit username mobileTimeZone self; @@ -182,7 +175,6 @@ inherit users; extraSpecialArgs = { inherit inputs outputs vars nixpkgs home-manager; - extraPkgs = mkExtraPkgs system; }; }; }; @@ -248,7 +240,6 @@ ] ++ extraModules; specialArgs = { inherit inputs outputs vars nixpkgs home-manager; - extraPkgs = mkExtraPkgs system; }; }; @@ -281,7 +272,6 @@ # values to be passed to nixosModules and homeManagerModules wrappers moduleInputs = { - inherit mkExtraPkgs; }; # Make a home-manager standalone configuration. This implementation is @@ -318,7 +308,6 @@ extraSpecialArgs = { inherit inputs outputs vars nixpkgs home-manager; - extraPkgs = mkExtraPkgs system; # this is needed because modules don't use the default arg for some reason??? osConfig = {};