dynamically generate archiveteam containers

Signed-off-by: ahuston-0 <aliceghuston@gmail.com>
This commit is contained in:
2024-06-23 15:42:33 -04:00
parent 67a337dfaf
commit a5bbb110c4
4 changed files with 138 additions and 1 deletions

View File

@ -56,7 +56,7 @@
# type:
# fileList :: Path -> String -> [Path]
fileList = dir: map (file: dir + "/${file}") (ls dir);
createContainers =
createTemplatedContainers =
containers: container-spec:
builtins.listToAttrs (
lib.flatten (
@ -70,6 +70,7 @@
)
);
# Converts an integer into a string
parseInt =
num:
let