nixos-config/packages/updater.nix

17 lines
273 B
Nix
Raw 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
script = lib.concatMapStringsSep "\n" (f: callPackage "${f}/updater.nix" { }) [ ./art ];
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}
''