Matt Sturgeon
82415eaa5d
modules/nixpkgs: warn about changing defaults
...
If end-users change the nixpkgs revision to something other than our
default, they can run into issues not picked up by our test suite.
2025-01-19 13:13:15 +00:00
Matt Sturgeon
3a22953bea
modules/nixpkgs: useGlobalPackages
default to false
...
Rather than waiting for a technically impossible migration strategy,
let's just bite the bullet and change the default.
2025-01-19 13:13:15 +00:00
Matt Sturgeon
7790746d38
modules/nixpkgs: add useGlobalPackages
option
2025-01-17 10:16:09 +00:00
Matt Sturgeon
b076f006c6
wrappers: add meta.wrappers
options to wrappers
...
Allows the docs to be a little less hard-coded.
Lays the groundwork for splitting up the platform-specific option docs
on a per-page basis.
2024-10-22 14:15:58 +01:00
Matt Sturgeon
574ae92a43
wrappers/modules: move enable
to shared.nix
...
We may end up having additional "shared" options and/or config.
2024-10-22 12:31:56 +01:00
Matt Sturgeon
cb2b76c1a9
docs/home-manager: eval options without checking config definitions
...
By default `lib.evalModules` will check all config definitions match
a declared option (or a freeform type), leading to errors like:
error: The option `wrapRc' does not exist.
Setting `_module.freeformType` or `_module.check` will disable this,
allowing us to evaluate the option declaration without checking the
config definitions.
2024-09-27 02:56:28 +01:00
Matt Sturgeon
fb7cda2868
modules/output: refactor wrapRc
default
...
Set default to `true`, with a low priority. Home-manager's wrapper sets
its own default using `mkOptionDefault`.
Clarify using `defaultText`.
2024-09-25 18:43:10 +01:00
Austin Horstman
c76e5070b9
wrappers: cleanup with lib
2024-09-03 22:12:33 -05:00
Matt Sturgeon
517648dac0
wrappers/standalone: move module to wrappers/modules
2024-07-05 18:28:19 +01:00
Matt Sturgeon
2deb61f6a5
modules/top-level: move out of wrappers/modules
2024-07-05 17:20:28 +01:00
Matt Sturgeon
d2afb176ff
modules: refactor module bootstrapping
...
Let's simplify things by defining all modules in `./plugins`, `./modules`
and `./wrappers/modules`.
Instead of currying `pkgs` into a bootstrapping module, we can require
`defaultPkgs` be provided as a special arg.
This refactor allows us to completely remove `flake-modules/modules.nix`!
2024-07-02 19:58:30 +01:00
Matt Sturgeon
3d96960348
wrappers: simplify modules
2024-07-02 14:15:51 +00:00
Gaetan Lepage
514413f631
wrappers/hm: add vimdiffAlias option
2024-06-03 00:29:52 +02:00
Matt Sturgeon
883d21d866
wrappers/output: omit blank neovimRcContent
2024-05-26 00:00:51 +01:00
Matt Sturgeon
1cc2e02fca
wrappers/output: fix initContent
formatting
...
Originally introduced in 21c233919d
2024-05-25 22:52:03 +01:00
Michael Franzl
b731bedfb9
expose withRuby option
2024-05-07 16:46:16 +02:00
traxys
62f32bfc71
treewide: Reformat with nixfmt
2024-05-05 22:00:40 +02:00
Matt Sturgeon
21c233919d
output: format init.lua
2024-04-13 12:46:25 +01:00
traxys
6d1ef5864b
docs: Add a section on module specific options ( #1355 )
...
This commit only adds Home-Manager specific options, we should add
sections for the different kind of modules too.
This is _not_ added to the man docs, as it is more complex. If need
arises we could look into how to do it.
2024-03-30 14:52:32 +01:00
Aaron Adams
40286bf9b0
expose withNodeJs option ( #1198 )
2024-03-03 22:59:53 +01:00
Gabriel Arazas
0b5800a2a2
docs: clean up descriptions ( #1061 )
2024-02-11 13:51:34 +01:00
Gaetan Lepage
92c623a436
wrappers/modules: remove unused pluginWithConfigType
2024-02-09 23:05:59 +01:00
Gaetan Lepage
89b472606d
modules/files: fix module
2024-02-09 21:18:46 +01:00
Peter Tonner
c795b2ee40
misc: fix python packages option name
2024-01-06 21:17:55 +01:00
Gaetan Lepage
d52f656a8b
misc: fix python environment options
2024-01-06 20:11:22 +01:00
Gaetan Lepage
1ab5159acf
modules: add python options to specify the python environment
2024-01-06 17:39:17 +01:00
Gaetan Lepage
10d114f5a6
misc/wrapRc: ignore user "after" directory when wrapRc is true
2024-01-04 09:22:31 +01:00
Gaetan Lepage
a2fa6753f9
misc/wrapRc: switch to XDG compliant path resolution
2024-01-02 13:20:07 +01:00
Gaetan Lepage
c359761871
misc/wrapRc: ignore user configuration when wrapRc is true
2024-01-02 11:31:18 +01:00
Gaetan Lepage
45d788bdd9
wrappers: add nixvim-print-init package
2023-12-07 14:38:21 +01:00
mrtnvgr
bfd1c5bace
feat(options): add defaultEditor
option ( #589 )
2023-09-18 16:38:58 +02:00
Tanish2002
efdcbe225f
perform some statix linting and fixes
2023-05-22 23:00:53 +02:00
traxys
5a498edd14
modules/output: Allow to specify text to add as extra files ( #343 )
...
To enable some features (like adding tree-sitter queries) we need to add
files to specific directories in the runtime path (queries/lang/file.scm
for tree-sitter queries for example).
This commit adds support for specifying such files. You must be careful
to not have any collisions between `files` and `extraFiles`.
2023-04-21 20:04:58 +02:00
Luc Chabassier
a6eec507cc
Enable creation of other config files than init.lua ( #246 )
2023-04-20 22:41:37 +02:00