From 1408e3ed2a649a931644ca505cf4e742b2f32148 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Thalheim?= Date: Sun, 7 May 2023 22:19:04 +0200 Subject: [PATCH] noninteractive: bring rsync back We need this in nixos-anywhere to upload files. --- nix/noninteractive.nix | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/nix/noninteractive.nix b/nix/noninteractive.nix index 6359e25..3a832f2 100644 --- a/nix/noninteractive.nix +++ b/nix/noninteractive.nix @@ -1,7 +1,7 @@ # This module optimizes for non-interactive deployments by remove some store paths # which are primarily useful for interactive installations. -{ config, lib, ... }: { +{ config, lib, pkgs, ... }: { disabledModules = [ # This module adds values to multiple lists (systemPackages, supportedFilesystems) # which are impossible/unpractical to remove, so we disable the entire module. @@ -11,15 +11,14 @@ # among others, this prevents carrying a stdenv with gcc in the image system.extraDependencies = lib.mkForce []; - # prevents shipping nixpkgs, unnecessary if system is evaluated externally nix.registry = lib.mkForce {}; # would pull in nano programs.nano.syntaxHighlight = lib.mkForce false; - # prevents nano, rsync, strace - environment.defaultPackages = lib.mkForce []; + # prevents nano, strace + environment.defaultPackages = lib.mkForce [ pkgs.rsync ]; # zfs support is accidentally disabled by excluding base.nix, re-enable it boot = {