From d7d2bd33eda985c128b7869b8eaa984507d66bc2 Mon Sep 17 00:00:00 2001 From: Ophestra Date: Wed, 26 Feb 2025 12:31:18 +0900 Subject: cmd/fpkg/build: expose nixos configuration This should be used sparingly as the NixOS closure is in the bootstrap store which compresses rather poorly. Signed-off-by: Ophestra --- cmd/fpkg/build.nix | 3 +++ 1 file changed, 3 insertions(+) (limited to 'cmd/fpkg') diff --git a/cmd/fpkg/build.nix b/cmd/fpkg/build.nix index 2f029f94..00244538 100644 --- a/cmd/fpkg/build.nix +++ b/cmd/fpkg/build.nix @@ -25,6 +25,7 @@ version ? throw "version is required", pname ? "${name}-${version}", modules ? [ ], + nixosModules ? [ ], script ? '' exec "$SHELL" "$@" '', @@ -76,6 +77,8 @@ let etc.nixpkgs.source = nixpkgs.outPath; systemPackages = [ pkgs.nix ]; }; + + imports = nixosModules; }; nixos = nixpkgs.lib.nixosSystem { inherit system; -- cgit v1.3.1