flake.nix: remove mkExtraPkgs function
Overlays are a much better way to inject custom packages
This commit is contained in:
parent
ef1aa3e37b
commit
f16d7d316d
@ -15,7 +15,6 @@ stuff may not match yet):
|
|||||||
- inputs: all specified flake inputs
|
- inputs: all specified flake inputs
|
||||||
- vars: attrset of variables that are passed to modules
|
- vars: attrset of variables that are passed to modules
|
||||||
- The flake also has multiple helper functions:
|
- The flake also has multiple helper functions:
|
||||||
- `mkExtraPkgs`: Produce a set of packages for the given system
|
|
||||||
- `eachSystem :: (system -> attrset) -> attrset`: Generate an attrset
|
- `eachSystem :: (system -> attrset) -> attrset`: Generate an attrset
|
||||||
of default systems (used for packages)
|
of default systems (used for packages)
|
||||||
- `homeManagerInit`: Generate a NixOS Module that initializes
|
- `homeManagerInit`: Generate a NixOS Module that initializes
|
||||||
|
11
flake.nix
11
flake.nix
@ -130,13 +130,6 @@
|
|||||||
# My current timezone for any mobile devices (i.e., my laptop)
|
# My current timezone for any mobile devices (i.e., my laptop)
|
||||||
mobileTimeZone = "America/New_York";
|
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
|
# Variables to be passed to NixOS modules in the vars attrset
|
||||||
vars = {
|
vars = {
|
||||||
inherit username mobileTimeZone self;
|
inherit username mobileTimeZone self;
|
||||||
@ -182,7 +175,6 @@
|
|||||||
inherit users;
|
inherit users;
|
||||||
extraSpecialArgs = {
|
extraSpecialArgs = {
|
||||||
inherit inputs outputs vars nixpkgs home-manager;
|
inherit inputs outputs vars nixpkgs home-manager;
|
||||||
extraPkgs = mkExtraPkgs system;
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
@ -248,7 +240,6 @@
|
|||||||
] ++ extraModules;
|
] ++ extraModules;
|
||||||
specialArgs = {
|
specialArgs = {
|
||||||
inherit inputs outputs vars nixpkgs home-manager;
|
inherit inputs outputs vars nixpkgs home-manager;
|
||||||
extraPkgs = mkExtraPkgs system;
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -281,7 +272,6 @@
|
|||||||
|
|
||||||
# values to be passed to nixosModules and homeManagerModules wrappers
|
# values to be passed to nixosModules and homeManagerModules wrappers
|
||||||
moduleInputs = {
|
moduleInputs = {
|
||||||
inherit mkExtraPkgs;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
# Make a home-manager standalone configuration. This implementation is
|
# Make a home-manager standalone configuration. This implementation is
|
||||||
@ -318,7 +308,6 @@
|
|||||||
|
|
||||||
extraSpecialArgs = {
|
extraSpecialArgs = {
|
||||||
inherit inputs outputs vars nixpkgs home-manager;
|
inherit inputs outputs vars nixpkgs home-manager;
|
||||||
extraPkgs = mkExtraPkgs system;
|
|
||||||
|
|
||||||
# this is needed because modules don't use the default arg for some reason???
|
# this is needed because modules don't use the default arg for some reason???
|
||||||
osConfig = {};
|
osConfig = {};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user