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,4 +1,4 @@
{ config, lib, pkgs, inputs, ...}:
{ config, lib, pkgs, ...}:
{
imports = [
../../common

View file

@ -1,4 +1,4 @@
{ config, lib, pkgs, modulesPath, inputs, ... }:
{ config, lib, pkgs, modulesPath, ... }:
{

View file

@ -1,4 +1,4 @@
{ config, lib, pkgs, inputs, ...}:
{ config, lib, pkgs, ...}:
{
boot.loader.efi.canTouchEfiVariables = true;

View file

@ -1,4 +1,4 @@
{ config, lib, pkgs, inputs, ...}:
{ config, lib, pkgs, ...}:
let
fsOptions = [ "noatime" "ssd" "space_cache" "compress=zstd" ];
in