From 62314ccc17684bcc9310f3b380cffe15bae177d6 Mon Sep 17 00:00:00 2001 From: Robert Hensing Date: Thu, 9 Jun 2022 11:37:08 +0200 Subject: [PATCH] flake.lib.nixosSystem: Allow nixpkgs.system to be set instead --- flake.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/flake.nix b/flake.nix index 8c0403adc4a3..f78c75128731 100644 --- a/flake.nix +++ b/flake.nix @@ -26,6 +26,11 @@ ".${final.substring 0 8 (self.lastModifiedDate or self.lastModified or "19700101")}.${self.shortRev or "dirty"}"; system.nixos.revision = final.mkIf (self ? rev) self.rev; } ]; + } // lib.optionalAttrs (! args?system) { + # Allow system to be set modularly in nixpkgs.system. + # We set it to null, to remove the "legacy" entrypoint's + # non-hermetic default. + system = null; }); });