You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(integrations): integration with other module systems (#227)
changed outputs.wrappedModules to outputs.wrappers (Sorry! But also this
is much better. You have 8 months to change it before the old one is
removed. This name will not change again)
Added flake-parts module for setting up your outputs, and building
packages
Added function for creating nixos and home manager modules from any
wrapper module.
Added flakeModules nixosModules and homeModules outputs to the main
flake.
Improved documentation.
Did the treewide update for checks from outputs.wrappedModules to
outputs.wrappers
Added specific dates of removal to some deprecations.
@@ -15,7 +15,7 @@ And it serves as a repository for modules for wrapping the programs themselves,
15
15
16
16
For that it offers:
17
17
-`wlib.wrapperModules`: Pre-made wrapper modules for common packages (`tmux`, `wezterm`, etc.)
18
-
-`outputs.wrappedModules`: a flake output containing partially evaluated forms of the modules in `wrapperModules` for easier access to `.wrap` and other values in the module system directly.
18
+
-`outputs.wrappers`: a flake output containing partially evaluated forms of the modules in `wrapperModules` for easier access to `.wrap` and other values in the module system directly.
19
19
20
20
## Usage
21
21
@@ -56,7 +56,7 @@ They will get you started with a module file and the default one also gives you
56
56
forAllSystems = with nixpkgs.lib; genAttrs platforms.all;
57
57
in {
58
58
packages = forAllSystems (system: {
59
-
default = wrappers.wrappedModules.mpv.wrap (
59
+
default = wrappers.wrappers.mpv.wrap (
60
60
{config, wlib, lib, pkgs, ...}: {
61
61
pkgs = import nixpkgs { inherit system; };
62
62
scripts = [ pkgs.mpvScripts.mpris ];
@@ -89,7 +89,7 @@ The package (via `passthru`) and the modules under `.config` both offer all 3 fu
89
89
```nix
90
90
# Apply initial configuration
91
91
# you can use `.eval` `.apply` or `.wrap` for this.
Copy file name to clipboardExpand all lines: docs/md/wrapper-modules.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,6 +10,6 @@ They include shortlist options for common configuration settings, and/or for pro
10
10
11
11
The flake also exports wrapper modules that have been partially evaluated for convenience.
12
12
13
-
This allows you to do something like `inputs.nix-wrapper-modules.wrappedModules.tmux.wrap { inherit pkgs; prefix = "C-Space"; }`, to build a package with a particular configuration quickly!
13
+
This allows you to do something like `inputs.nix-wrapper-modules.wrappers.tmux.wrap { inherit pkgs; prefix = "C-Space"; }`, to build a package with a particular configuration quickly!
14
14
15
15
You can then export that package, and somebody else could call `.wrap` on it as well to change it again!
0 commit comments