Commit graph

27 commits

Author SHA1 Message Date
Loïc Reynier
233feeb8d2
treewide: fix typos (#1217) 2024-03-07 19:44:13 +01:00
Gaetan Lepage
5293373732 flake/devshell: remove "$@" in 'checks' as it doesn't work 2024-03-06 10:19:42 +01:00
Gaetan Lepage
8b0eba515d flake/devshell: forward cli args to commands 2024-03-04 11:45:36 +01:00
Gaetan Lepage
274293fd69 flake/dev: add a convenient devshell 2024-03-02 14:51:00 +01:00
traxys
9cd3721adf
standalone: Allow to extend a standalone derivation with a new module (#1142)
This adds the `nixvimExtend` attribute to the generated standalone
derivation, this attribute takes a module as an argument and returns a
new standalone derivation with the initial module & the extended module
merged together.
2024-02-22 08:22:21 +01:00
traxys
82a24d0d42
docs: Allow to add an url in the online documentation (#1139)
* plugin/committia: Use correct maintainers import

* plugins/neocord: Remove redyf as the entry is not in the list

* docs: Allow to add an URL to the plugin
2024-02-20 21:20:59 +01:00
traxys
dcbe894bea
Fix issue with non flake import (#1102)
* Update flake compat

* tests: Add a test without flakes
2024-02-15 22:51:26 +01:00
traxys
6d7e429537
tests: Introduce a way to disable options when running in tests (#1095)
In our basic template we used to provide a check based on
`mkTestDerivationFromNvim`. The issue with this check (that is handled
correctly internally) is that some plugins _can't_ be used in the test
environment, for example image.nvim like in #1085.

This commit introduces a new function to generate such checks,
`mkTestDerivationFromNixvimModule`, that wraps a nixvim configuration
instead of a built nvim instance.

Then a configuration can rely on the newly added
`helpers.enableExceptInTests` attribute to disable parts of the
configuration depending if it is evaluated in tests or in a real final
configuration.

Resolves #1085
2024-02-15 14:27:45 +01:00
Gaetan Lepage
a121d96091 tests: do not import helpers.nix directly 2024-02-11 11:50:35 +01:00
Gaetan Lepage
5d3ed3a09e misc: refactor helpers propagation
Co-authored-by: Robert Hensing <robert@roberthensing.nl>
2024-02-09 14:20:25 +01:00
Gaetan Lepage
eec8d6b1b2 misc: import nixvim modules in a simpler way 2024-02-09 08:15:13 +01:00
traxys
507ff5b142
docs: Use a nixpkgs patch instead of copy/pasting nixpkgs functions (#1011)
This makes the code more maintainable, as it only depends on our small
patch, instead of a large number of internals of nixpkgs.
2024-02-03 19:04:09 +01:00
Gaetan Lepage
df7a90127b flake: use unfree nixpkgs to build documentation 2024-01-18 13:45:23 +01:00
traxys
29225c2797
docs: Correctly generate documentation for types either a (submodule ...) (#929)
This requires pulling quite a lot of code from nixpkgs in order to
make the `either` type work correctly, the effects can be seen for
example in the documentation of `ollama.promps` and `ollama.actions`
2024-01-12 23:22:03 +01:00
Gaetan Lepage
ed02648368 flake/wrappers: move wrappers checks to wrappers.nix 2024-01-06 18:20:46 +01:00
traxys
2167c1930c
tests: Add a test for nix-darwin modules (#909) 2024-01-06 18:03:44 +01:00
traxys
245930d735
tests: Add a test for the nixos module (#907) 2024-01-06 17:53:31 +01:00
traxys
96cdbc8177
tests: Add a test for the home-manager module (#901) 2024-01-06 17:31:17 +01:00
Gaetan Lepage
186fe574f9 flake: checks.nix -> tests.nix 2024-01-06 16:00:22 +01:00
Gaetan Lepage
48b5056d28 flake/packages: test all packages by default 2024-01-06 16:00:22 +01:00
Gaetan Lepage
782f2d6150 flake/packages: exclude docs from packages on darwin 2024-01-06 16:00:22 +01:00
Gaetan Lepage
3bced7b059 flake/templates: propagate the template's checks to the main flake's 2024-01-06 15:08:08 +01:00
Gaetan Lepage
7d0b2c2ed0 misc: remove deprecated/unused helpers folder 2024-01-06 14:37:18 +01:00
Gaetan Lepage
f14b59b242 flake/modules: remove the flake inputs from nixvim module inputs 2024-01-06 14:37:18 +01:00
Gaetan Lepage
e8d6b60a2b flake: move documentation building from CI to flake check 2024-01-06 14:37:18 +01:00
Mirko Lenz
eecd2ab3ce Update wrapper imports (fixes #898) 2024-01-06 11:06:06 +01:00
Gaetan Lepage
31284ddabe flake.nix: refactoring using flake-parts 2024-01-06 00:05:13 +01:00