nixos-config/packages/updater.nix

20 lines
290 B
Nix
Raw Permalink Normal View History

2024-11-10 21:20:25 +00:00
{
lib,
callPackage,
writeScriptBin,
2024-11-11 09:26:19 +00:00
bash,
nix,
2024-11-10 21:20:25 +00:00
}:
let
2024-11-12 15:16:34 +00:00
script = lib.concatMapStringsSep "\n" (f: callPackage "${f}/updater.nix" { }) [
./art
./kodi
];
2024-11-10 21:20:25 +00:00
in
writeScriptBin "updater" ''
2024-11-11 09:26:19 +00:00
#!${bash}/bin/bash
set -euxo pipefail
${nix}/bin/nix flake update
2024-11-10 21:20:25 +00:00
${script}
''