aboutsummaryrefslogtreecommitdiffhomepage
path: root/cmd/fpkg
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2025-02-26 12:31:18 +0900
committerOphestra <cat@gensokyo.uk>2025-02-26 12:31:18 +0900
commitd7d2bd33eda985c128b7869b8eaa984507d66bc2 (patch)
treea76f2f4aa3fb7357af2ced40581ffceb0ada4d6e /cmd/fpkg
parentc21a4cff14baddeea8b1c25d144b13521bb86fee (diff)
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 <cat@gensokyo.uk>
Diffstat (limited to 'cmd/fpkg')
-rw-r--r--cmd/fpkg/build.nix3
1 files changed, 3 insertions, 0 deletions
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;