summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--hosts/radish/tarball.nix20
1 files changed, 13 insertions, 7 deletions
diff --git a/hosts/radish/tarball.nix b/hosts/radish/tarball.nix
index e3840c9..4470e4a 100644
--- a/hosts/radish/tarball.nix
+++ b/hosts/radish/tarball.nix
@@ -1,15 +1,21 @@
{ pkgs, config, inputs, ... }:
-let inherit (inputs) nixpkgs;
+let
+ inherit (inputs) nixpkgs;
+ pkgs2storeContents = map (x: {
+ object = x;
+ symlink = "none";
+ });
in
{
system.build.tarball = pkgs.callPackage "${nixpkgs}/nixos/lib/make-system-tarball.nix" {
- contents = [
- {
- source = "${config.system.build.toplevel}/.";
- target = "./";
- }
+ contents = [ ];
+ storeContents = pkgs2storeContents [
+ config.system.build.toplevel
];
- extraArgs = "--owner=0";
+ extraCommands = (pkgs.writeScript "extra-commands.sh" ''
+ mkdir -p etc run {usr/,}bin var
+ ln -s ${config.system.build.toplevel} /run/current-system
+ '');
};
}