diff options
author | Simon Parri <simonparri@ganzeria.com> | 2025-09-18 16:44:36 -0500 |
---|---|---|
committer | Simon Parri <simonparri@ganzeria.com> | 2025-09-18 16:45:32 -0500 |
commit | dcee343acd86ab461c6832755f43fcf9bc83a763 (patch) | |
tree | 56c051137280e7b4bf2fd408fc0a1946e54f160b /hosts | |
parent | 67c19fb328784f68d4167f180db94abc55d4c127 (diff) | |
download | nixos-config-dcee343acd86ab461c6832755f43fcf9bc83a763.tar.gz nixos-config-dcee343acd86ab461c6832755f43fcf9bc83a763.zip |
hosts/radish: Add tarball derivation
Diffstat (limited to 'hosts')
-rw-r--r-- | hosts/radish/default.nix | 1 | ||||
-rw-r--r-- | hosts/radish/tarball.nix | 15 |
2 files changed, 16 insertions, 0 deletions
diff --git a/hosts/radish/default.nix b/hosts/radish/default.nix index 2635501..0e0ae0e 100644 --- a/hosts/radish/default.nix +++ b/hosts/radish/default.nix @@ -3,6 +3,7 @@ { imports = [ ./packages.nix + ./tarball.nix ]; boot.isContainer = true; 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"; + }; +} |