loki: Remove nix post-build-hook
This commit is contained in:
parent
f0e361505d
commit
cb983f7152
1 changed files with 1 additions and 28 deletions
|
@ -1,9 +1,4 @@
|
||||||
{
|
{ nixos-hardware, nix-ld-rs, ... }:
|
||||||
nixos-hardware,
|
|
||||||
nix-ld-rs,
|
|
||||||
attic,
|
|
||||||
...
|
|
||||||
}:
|
|
||||||
{ pkgs, config, ... }:
|
{ pkgs, config, ... }:
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
|
@ -524,28 +519,6 @@
|
||||||
in
|
in
|
||||||
[ "L+ /opt/rocm - - - - ${rocmEnv}" ];
|
[ "L+ /opt/rocm - - - - ${rocmEnv}" ];
|
||||||
|
|
||||||
nix.settings.post-build-hook =
|
|
||||||
let
|
|
||||||
inherit (attic.packages.${pkgs.system}) attic-client;
|
|
||||||
cachedPackagePatterns = builtins.concatStringsSep "|" [
|
|
||||||
"mongodb"
|
|
||||||
"qgis"
|
|
||||||
];
|
|
||||||
in
|
|
||||||
pkgs.writeScript "upload-to-cache" ''
|
|
||||||
set -eu
|
|
||||||
set -f
|
|
||||||
export IFS=' '
|
|
||||||
|
|
||||||
OUT_PATHS=$(echo -n ''${OUT_PATHS} | ${pkgs.gawk}/bin/awk 'BEGIN { RS = " "; ORS = " "; } $0 ~ /(${cachedPackagePatterns})/ { print $0 }')
|
|
||||||
if [[ -z "''${OUT_PATHS}" ]]; then
|
|
||||||
echo "No matching packages to upload"
|
|
||||||
exit 0
|
|
||||||
fi
|
|
||||||
echo "Uploading paths to cache " ''${OUT_PATHS}
|
|
||||||
exec ${attic-client}/bin/attic push main ''${OUT_PATHS}
|
|
||||||
'';
|
|
||||||
|
|
||||||
sops.defaultSopsFile = ./secrets.yaml;
|
sops.defaultSopsFile = ./secrets.yaml;
|
||||||
sops.secrets = {
|
sops.secrets = {
|
||||||
ha_now_playing_token = {
|
ha_now_playing_token = {
|
||||||
|
|
Loading…
Reference in a new issue