nixos/{containers,cri-o,podman}: move copyFile to nixos/lib/utils

This commit is contained in:
zowoq
2020-09-24 10:01:47 +10:00
parent f569e1f399
commit 008de9ca3c
4 changed files with 13 additions and 21 deletions
+5
View File
@@ -2,6 +2,11 @@ pkgs: with pkgs.lib;
rec {
# Copy configuration files to avoid having the entire sources in the system closure
copyFile = filePath: pkgs.runCommandNoCC (builtins.unsafeDiscardStringContext (builtins.baseNameOf filePath)) {} ''
cp ${filePath} $out
'';
# Check whenever fileSystem is needed for boot. NOTE: Make sure
# pathsNeededForBoot is closed under the parent relationship, i.e. if /a/b/c
# is in the list, put /a and /a/b in as well.