summaryrefslogtreecommitdiff
path: root/hosts/radish/tarball.nix
diff options
context:
space:
mode:
Diffstat (limited to 'hosts/radish/tarball.nix')
-rw-r--r--hosts/radish/tarball.nix15
1 files changed, 15 insertions, 0 deletions
diff --git a/hosts/radish/tarball.nix b/hosts/radish/tarball.nix
new file mode 100644
index 0000000..e3840c9
--- /dev/null
+++ b/hosts/radish/tarball.nix
@@ -0,0 +1,15 @@
+{ pkgs, config, inputs, ... }:
+
+let inherit (inputs) nixpkgs;
+in
+{
+ system.build.tarball = pkgs.callPackage "${nixpkgs}/nixos/lib/make-system-tarball.nix" {
+ contents = [
+ {
+ source = "${config.system.build.toplevel}/.";
+ target = "./";
+ }
+ ];
+ extraArgs = "--owner=0";
+ };
+}