bors[bot]
8bfe94414f
Merge #61
...
61: Add option for defining flake-parts modules for downstream flakes. r=roberth a=shlevy
Co-authored-by: Shea Levy <shea@shealevy.com>
2022-12-27 12:46:02 +00:00
Robert Hensing
a765ceb02c
perSystem: Add custom error messages for learning about top level module args
...
Example:
```
error: `self` (without `'`) is not a `perSystem` module argument, but a
module argument of the top level config.
The following is an example usage of `self`. Note that its binding
is in the `top` parameter list, which is declared by the top level module
rather than the `perSystem` module.
top@{ config, lib, self, ... }: {
perSystem = { config, self', ... }: {
# in scope here:
# - self
# - self'
# - config (of perSystem)
# - top.config (note the `top@` pattern)
};
}
```
2022-12-27 12:59:03 +01:00
Shea Levy
f3c79bef3b
Add option for defining flake-parts modules for downstream flakes.
2022-12-25 06:30:44 -05:00
Robert Hensing
7bb0781d08
Add debug module
2022-12-20 18:07:16 +01:00
Robert Hensing
85518a2916
Remove darwinModules
...
It should be added to the nix-darwin project instead.
2022-11-27 16:21:59 +00:00
Robert Hensing
4944a920d2
formatter: Use markdown
2022-11-13 11:51:28 +01:00
Robert Hensing
a78bfeaa86
Revert "formatter: Use mkTransposedPerSystemModule"
...
This reverts commit e7da962abb
.
2022-11-13 11:50:16 +01:00
Robert Hensing
d8f05073ae
Remove redundant lib.mdDoc
2022-11-11 07:41:10 +01:00
Robert Hensing
6b87695050
Use markdown by default
2022-11-11 07:41:08 +01:00
Shea Levy
96c27dbba0
packages: Use mkTransposedPerSystemModule
2022-11-10 14:06:56 -05:00
Shea Levy
1e5e56e476
legacyPackages: Use mkTransposedPerSystemModule
2022-11-10 14:06:33 -05:00
Shea Levy
e7da962abb
formatter: Use mkTransposedPerSystemModule
2022-11-10 14:06:11 -05:00
Shea Levy
5e259eb312
devShells: Use mkTransposedPerSystemModule
2022-11-10 14:05:51 -05:00
Shea Levy
5bcff37bc1
checks: Use mkTransposedPerSystemModule
2022-11-10 14:05:14 -05:00
Shea Levy
40b344843d
apps: Use mkTransposedPerSystemModule
2022-11-10 14:04:40 -05:00
Robert Hensing
0c8eff7513
Add transposition.<name>.adHoc
2022-10-26 14:07:24 +02:00
Robert Hensing
6269836424
Generalize transposed attributes
2022-10-26 14:06:02 +02:00
Robert Hensing
79b42f0842
Remove dead code
...
The module system guarantees presence of these attrs.
2022-10-26 12:34:16 +02:00
Robert Hensing
e511bc4812
Remove redundant null filters
2022-09-28 19:13:41 +02:00
Jonas Chevalier
d6fdbbca37
Update modules/formatter.nix
...
Co-authored-by: Robert Hensing <roberth@users.noreply.github.com>
2022-09-20 15:53:52 +02:00
Jonas Chevalier
09bc19757c
Update modules/formatter.nix
...
Co-authored-by: Robert Hensing <roberth@users.noreply.github.com>
2022-09-20 15:53:47 +02:00
zimbatm
41ba43a33d
add formatter schema
...
This is needed for flakes that want to support `nix fmt`
2022-09-19 16:59:51 +02:00
Robert Hensing
89cce5852d
Merge pull request #48 from hercules-ci/moduleWithSystem
...
Add `moduleWithSystem` flake module parameter
2022-09-13 14:10:30 +02:00
Robert Hensing
e646df196a
Add moduleWithSystem flake module parameter
2022-09-13 13:56:21 +02:00
Robert Hensing
d254845ca8
legacyPackages: anything -> raw
...
The `anything` type is too strict, because it uses `attrsOf`
internally, filtering out `mkIf` attrs and therefore evaluating
attribute values when only the names would be needed.
Furthermore, it is not safe to make assumptions about the objects
in legacyPackages, because while most attributes contain packages
or package sets, anything is allowed, so we don't know for sure how
to merge.
Fixes #52
2022-08-20 17:13:55 +02:00
Lucas Desgouilles
690e548642
Skip getExe when app.<name>.program
is a string
2022-06-23 03:03:48 +02:00
Robert Hensing
19e19dce5a
Add withSystem parameter
2022-05-27 17:42:33 +02:00
Robert Hensing
ec760fc665
flake.overlay -> flake.overlays (Nix 2.8)
2022-05-25 19:53:10 +02:00
Robert Hensing
3ee82a16d6
perSystem: functionTo -> deferredModule
2022-05-25 18:18:50 +02:00
Robert Hensing
3beb704537
flake-modules-core -> flake-parts
2022-05-25 16:38:27 +02:00
Robert Hensing
1bd171ef6b
Add pkgs parameter to perSystem
2022-05-18 11:06:17 +02:00
Robert Hensing
e1ea24ed30
Add nixosConfigurations
2022-05-17 11:01:40 +02:00
Robert Hensing
1c0f8f3036
Move perSystem.packages into options
2022-05-17 10:12:13 +02:00
Robert Hensing
fdd87732fd
Move perSystem.legacyPackages into options
2022-05-17 10:12:13 +02:00
Robert Hensing
a329428f20
Move perSystem.devShells into options
2022-05-17 10:12:13 +02:00
Robert Hensing
ef93e89462
Move perSystem.apps into options
2022-05-17 10:12:13 +02:00
Robert Hensing
4835e05925
Move perSystem.checks into options
2022-05-17 10:12:13 +02:00
Robert Hensing
3149d748cb
Fix docbook syntax and literalExample deprecation
2022-05-17 10:12:13 +02:00
Robert Hensing
783e29f7dd
Add mkPerSystemType, mkPerSystemModule
2022-05-17 10:12:13 +02:00
Robert Hensing
1fb0d37021
flake/freeformType: anything -> raw
...
No need to avoid raw, because it has been merged for some time now.
2022-05-17 09:13:12 +02:00
Robert Hensing
9aba31a8b5
Add apps
2022-05-11 22:45:26 +02:00
Robert Hensing
6cbe3c89c5
Remove devShell. Use devShells.default instead.
2022-05-11 21:37:02 +02:00
Robert Hensing
0f58fecd5f
Fix getSystem
2022-04-06 18:01:26 +02:00
Robert Hensing
6ec7dec1fb
Add devShells
...
Not deprecating devShell yet.
2022-03-15 19:24:44 +01:00
Robert Hensing
77771f1d6d
Add overlay
2021-11-22 22:44:39 +01:00
Robert Hensing
0cf2ff3e94
Document technical reason for requiring devShell
2021-11-22 22:44:39 +01:00
Robert Hensing
e5d5866b1d
Add nixosModules
2021-11-22 22:44:39 +01:00
Robert Hensing
6b7705d350
Add darwinModules
2021-11-22 22:44:39 +01:00
Robert Hensing
1b82c7f771
Memoize perSystem in allSystems, require devShell
2021-11-22 22:01:38 +01:00
Robert Hensing
d5703798a8
Set the default devShell to null
2021-11-22 16:36:16 +01:00