nixosConfigurations: move input forwarding to inline module

Inspired by https://jade.fyi/blog/flakes-arent-real/, this is better for
composability:
>  it also doesn't work outside of the flake that's actually invoking nixpkgs.lib.nixosSystem. The latter is the much more sinister part, and the reason I would strongly recommend inline modules with closures instead of specialArgs: they break flake composition.

For now, the `system` remains a specialArg, until I decide what to do
with that.
This commit is contained in:
Trolli Schmittlauch 2024-01-20 12:25:32 +01:00
parent 4a43774913
commit 9ad1049f4a
7 changed files with 20 additions and 8 deletions

View file

@ -1,6 +1,7 @@
{ config, pkgs, lib, inputs, ... }:
{ config, pkgs, lib, ... }:
let
inputs = config.inputInjection.flake-inputs;
unstable = inputs.nixos-unstable;
in