Robert Hensing
7459c02495
lib/tests/modules.sh: Add submodule + class tests
2023-05-06 18:32:59 +02:00
Robert Hensing
8054785157
lib/modules: Move class out of specialArgs
2023-05-06 18:32:58 +02:00
Robert Hensing
8f02e95aff
module-system.chapter.md: Elaborate on extendModules performance
2023-05-06 18:32:58 +02:00
Robert Hensing
5fac39307d
module-system.chapter.md: Add mental model to type
and extendModules
2023-05-06 18:32:58 +02:00
Robert Hensing
73f584c3cc
lib/modules.nix: Deduplicate documentation
...
`file://./..` looks redundant, but makes the url clickable in vscode.
2023-05-06 18:32:58 +02:00
Robert Hensing
03a465f048
fixup! doc: Add Module System chapter start
2023-05-06 18:32:12 +02:00
Robert Hensing
ee1e14be0c
doc: Add Module System chapter start
2023-05-06 18:29:05 +02:00
Robert Hensing
79703eef08
nixos,nixpkgs: Add module classes
...
This allows modules that declare their class to be checked.
While that's not most user modules, frameworks can take advantage
of this by setting declaring the module class for their users.
That way, the mistake of importing a module into the wrong hierarchy
can be reported more clearly in some cases.
2023-05-06 18:29:04 +02:00
Robert Hensing
84b1b01702
lib/modules: Only interpret class declaration in non-shorthand mode
...
This is to avoid stealing keys from submodules. `class` might be
common enough that reinterpreting existing `class` attributes in
configurations as a declaration leads to fairly widespread problems.
2023-05-06 18:29:04 +02:00
Robert Hensing
1f4a58ef03
lib/modules.nix: Refactor: extract applyModuleArgs
2023-05-06 18:29:04 +02:00
Robert Hensing
06ca78663c
lib/modules.nix: Refactor: evaluate applyModuleArgsIfFunction in attrs case
2023-05-06 18:29:04 +02:00
Robert Hensing
439f6790bd
lib/modules.nix: Restore old collectModules interface
2023-05-06 18:29:04 +02:00
Robert Hensing
9714487f74
lib/modules: Explain that a configuration can't be loaded as a module
2023-05-06 18:29:04 +02:00
Robert Hensing
2e689d58cb
lib/modules: Improve error when a configuration is imported
...
This is appears to be a fairly common mistake for beginners who want
to build larger things from the system configurations, such as NixOps
networks, etc. Further explanation seems appropriate.
2023-05-06 18:29:03 +02:00
Robert Hensing
58f385f680
lib/modules: Check against importing things with a _type
2023-05-06 18:29:03 +02:00
Robert Hensing
b8ff2807a2
lib/modules: Add class concept to check imports
...
This improves the error message when an incompatible module is
imported.
2023-05-06 18:29:03 +02:00
Robert Hensing
3633bf98be
lib/modules.nix: Make some functions private
...
The supposedly public nature of these functions has been holding
back module system maintenance, while usages of these functions
are expected to be rare. If used anywhere, presumably they're
emulating module system behavior because some use case isn't supported
properly. We should try to support such a use case directly, if it
even exists.
2023-05-06 18:29:03 +02:00
Robert Hensing
fe15279390
lib/modules.nix: Use explicit exports
2023-05-06 18:22:51 +02:00
Robert Hensing
e7e64233c9
lib/tests/modules.sh: Unload implicit modules
...
I had some trouble understanding this. Let's try to keep new tests
a bit more stateless and explicit.
2023-05-06 18:22:50 +02:00
Weijia Wang
aa6d45958b
Merge pull request #230294 from r-ryantm/auto-update/flannel
...
flannel: 0.21.4 -> 0.21.5
2023-05-06 13:00:18 +03:00
Weijia Wang
a113839124
Merge pull request #230293 from r-ryantm/auto-update/treesheets
...
treesheets: unstable-2023-05-03 -> unstable-2023-05-04
2023-05-06 12:58:36 +03:00
Weijia Wang
2809301f22
Merge pull request #230292 from r-ryantm/auto-update/gobgp
...
gobgp: 3.13.0 -> 3.14.0
2023-05-06 12:57:54 +03:00
Weijia Wang
5920785045
Merge pull request #230274 from r-ryantm/auto-update/fldigi
...
fldigi: 4.1.25 -> 4.1.26
2023-05-06 12:55:46 +03:00
Weijia Wang
f8b82ac93e
Merge pull request #230273 from r-ryantm/auto-update/deno
...
deno: 1.33.1 -> 1.33.2
2023-05-06 12:54:48 +03:00
Weijia Wang
ac4a45fc4b
Merge pull request #230272 from r-ryantm/auto-update/dsdcc
...
dsdcc: 1.9.3 -> 1.9.4
2023-05-06 12:53:47 +03:00
Weijia Wang
529c26e5e6
Merge pull request #230271 from r-ryantm/auto-update/hostctl
...
hostctl: 1.1.3 -> 1.1.4
2023-05-06 12:52:21 +03:00
Weijia Wang
695a0b7858
Merge pull request #230261 from r-ryantm/auto-update/cilium-cli
...
cilium-cli: 0.14.0 -> 0.14.1
2023-05-06 12:48:10 +03:00
Weijia Wang
3b7d22dac5
Merge pull request #230259 from r-ryantm/auto-update/stripe-cli
...
stripe-cli: 1.14.0 -> 1.14.1
2023-05-06 12:44:55 +03:00
Weijia Wang
bda5d72071
Merge pull request #230237 from r-ryantm/auto-update/twilio-cli
...
twilio-cli: 5.7.0 -> 5.8.0
2023-05-06 12:40:59 +03:00
Weijia Wang
256d3aae97
Merge pull request #230263 from r-ryantm/auto-update/sentry-native
...
sentry-native: 0.6.1 -> 0.6.2
2023-05-06 12:38:46 +03:00
Weijia Wang
ec74ae3be3
Merge pull request #230255 from r-ryantm/auto-update/codeql
...
codeql: 2.13.0 -> 2.13.1
2023-05-06 12:38:19 +03:00
Weijia Wang
551a3c2b39
Merge pull request #230264 from r-ryantm/auto-update/lxgw-wenkai
...
lxgw-wenkai: 1.250 -> 1.300
2023-05-06 12:37:24 +03:00
Weijia Wang
1e109204c6
Merge pull request #230243 from r-ryantm/auto-update/gimme-aws-creds
...
gimme-aws-creds: 2.6.0 -> 2.6.1
2023-05-06 12:36:42 +03:00
Weijia Wang
8346cfb770
Merge pull request #230242 from r-ryantm/auto-update/flyctl
...
flyctl: 0.0.539 -> 0.0.553
2023-05-06 12:36:18 +03:00
Weijia Wang
00ef02826d
Merge pull request #230239 from r-ryantm/auto-update/stellar-core
...
stellar-core: 19.9.0 -> 19.10.0
2023-05-06 12:35:36 +03:00
Weijia Wang
80111ce678
Merge pull request #230238 from r-ryantm/auto-update/tilt
...
tilt: 0.32.2 -> 0.32.3
2023-05-06 12:35:03 +03:00
Weijia Wang
749f1e35fc
Merge pull request #230268 from r-ryantm/auto-update/cloudflared
...
cloudflared: 2023.4.2 -> 2023.5.0
2023-05-06 12:34:17 +03:00
Weijia Wang
64fba5e0b8
Merge pull request #230266 from r-ryantm/auto-update/httplib
...
httplib: 0.12.2 -> 0.12.3
2023-05-06 12:33:46 +03:00
Weijia Wang
91b376b419
Merge pull request #230245 from r-ryantm/auto-update/bosh-cli
...
bosh-cli: 7.2.2 -> 7.2.3
2023-05-06 12:33:20 +03:00
Weijia Wang
94225f81bb
Merge pull request #230250 from r-ryantm/auto-update/spicetify-cli
...
spicetify-cli: 2.17.2 -> 2.18.0
2023-05-06 12:32:18 +03:00
Weijia Wang
9c9783ab2f
Merge pull request #230251 from r-ryantm/auto-update/mob
...
mob: 4.4.0 -> 4.4.1
2023-05-06 12:29:32 +03:00
Weijia Wang
3681b05e61
Merge pull request #230108 from r-ryantm/auto-update/urbit
...
urbit: 2.1 -> 2.3
2023-05-06 12:28:47 +03:00
Florian Klink
2be0793a72
Merge pull request #230300 from r-ryantm/auto-update/web-eid-app
...
web-eid-app: 2.3.0 -> 2.3.1
2023-05-06 12:26:58 +03:00
Sergei Trofimovich
317c540055
Merge pull request #230269 from trofi/libgcc-update
...
libgcc: 11.3.0 -> 12.2.0
2023-05-06 10:02:39 +01:00
R. Ryantm
3d326fbf4e
web-eid-app: 2.3.0 -> 2.3.1
2023-05-06 08:58:09 +00:00
maxine
727ee47149
Merge pull request #230248 from bobby285271/upd/gdm
...
gnome.gdm: 44.0 → 44.1
2023-05-06 10:54:38 +02:00
Bobby Rong
e53b155576
Merge pull request #230217 from Aleksanaa/valent
...
valent: unstable-2023-03-31 -> unstable-2023-05-01
2023-05-06 16:54:24 +08:00
R. Ryantm
17bb54d46f
kubecm: 0.22.1 -> 0.23.0
2023-05-06 16:51:39 +08:00
R. Ryantm
daf34dc6e2
netmaker: 0.18.7 -> 0.19.0
2023-05-06 16:50:29 +08:00
R. Ryantm
fb383b5f9e
wtwitch: 2.6.1 -> 2.6.2
2023-05-06 16:48:45 +08:00