diff --git a/lib/flake-lib.nix b/lib/flake-lib.nix index ec6745f9..58a286d3 100644 --- a/lib/flake-lib.nix +++ b/lib/flake-lib.nix @@ -45,13 +45,18 @@ inputs: rec { modules = [ - { + ({config, ...}: { options = with pkgs.lib; { environment.variables.FLAKE = mkOption { type = with types; nullOr str; }; + environment.systemPackages = mkOption { + type = with types; listOf package; + default = []; + }; }; - } + config.environment.packages = config.environment.systemPackages; + }) {home-manager = {inherit extraSpecialArgs;};} ../common/nix-on-droid.nix ]