perSystem: functionTo -> deferredModule

This commit is contained in:
Robert Hensing 2022-05-25 18:09:17 +02:00
parent d5370c0774
commit 3ee82a16d6
9 changed files with 58 additions and 17 deletions

View file

@ -17,7 +17,7 @@
];
systems = [ "x86_64-linux" "aarch64-darwin" ];
perSystem = system: { config, self', inputs', pkgs, ... }: {
perSystem = { config, self', inputs', pkgs, system, ... }: {
# Per-system attributes can be defined here. The self' and inputs'
# module parameters provide easy access to attributes of the same
# system.

View file

@ -13,7 +13,7 @@
./hello/flake-module.nix
];
systems = [ "x86_64-linux" "aarch64-darwin" ];
perSystem = system: { config, self', inputs', ... }: {
perSystem = { config, self', inputs', ... }: {
# Per-system attributes can be defined here. The self' and inputs'
# module parameters provide easy access to attributes of the same
# system.

View file

@ -1,7 +1,7 @@
# Definitions can be imported from a separate file like this one
{ self, ... }: {
perSystem = system: { config, self', inputs', pkgs, ... }: {
perSystem = { config, self', inputs', pkgs, ... }: {
# Definitions like this are entirely equivalent to the ones
# you may have directly in flake.nix.
packages.hello = pkgs.hello;