nixos-config/packages/updater.nix

19 lines
290 B
Nix

{
lib,
callPackage,
writeScriptBin,
bash,
nix,
}:
let
script = lib.concatMapStringsSep "\n" (f: callPackage "${f}/updater.nix" { }) [
./art
./kodi
];
in
writeScriptBin "updater" ''
#!${bash}/bin/bash
set -euxo pipefail
${nix}/bin/nix flake update
${script}
''