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:
parent
4a43774913
commit
9ad1049f4a
7 changed files with 20 additions and 8 deletions
|
@ -1,4 +1,4 @@
|
|||
{ config, lib, pkgs, inputs, ...}:
|
||||
{ config, lib, pkgs, ...}:
|
||||
{
|
||||
imports = [
|
||||
../../common
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
{ config, lib, pkgs, modulesPath, inputs, ... }:
|
||||
{ config, lib, pkgs, modulesPath, ... }:
|
||||
|
||||
|
||||
{
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
{ config, lib, pkgs, inputs, ...}:
|
||||
{ config, lib, pkgs, ...}:
|
||||
{
|
||||
boot.loader.efi.canTouchEfiVariables = true;
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
{ config, lib, pkgs, inputs, ...}:
|
||||
{ config, lib, pkgs, ...}:
|
||||
let
|
||||
fsOptions = [ "noatime" "ssd" "space_cache" "compress=zstd" ];
|
||||
in
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue