loki: Disable post-build-hook
This commit is contained in:
parent
52d153f27e
commit
bdd51d8d89
1 changed files with 13 additions and 18 deletions
|
@ -1,9 +1,4 @@
|
||||||
{
|
{ nixos-hardware, nix-ld-rs, ... }:
|
||||||
nixos-hardware,
|
|
||||||
nix-ld-rs,
|
|
||||||
attic,
|
|
||||||
...
|
|
||||||
}:
|
|
||||||
{ pkgs, config, ... }:
|
{ pkgs, config, ... }:
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
|
@ -478,19 +473,19 @@
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
nix.settings.post-build-hook =
|
# nix.settings.post-build-hook =
|
||||||
let
|
# let
|
||||||
inherit (attic.packages.${pkgs.system}) attic-client;
|
# inherit (attic.packages.${pkgs.system}) attic-client;
|
||||||
in
|
# in
|
||||||
pkgs.writeScript "upload-to-cache" ''
|
# pkgs.writeScript "upload-to-cache" ''
|
||||||
set -eu
|
# set -eu
|
||||||
set -f
|
# set -f
|
||||||
export IFS=' '
|
# export IFS=' '
|
||||||
|
|
||||||
OUT_PATHS=$(echo -n ''${OUT_PATHS} | ${pkgs.gawk}/bin/awk 'BEGIN { RS = " "; ORS = " "; } $0 !~ /horus_vcpkg/ { print $0 }')
|
# OUT_PATHS=$(echo -n ''${OUT_PATHS} | ${pkgs.gawk}/bin/awk 'BEGIN { RS = " "; ORS = " "; } $0 !~ /horus_vcpkg/ { print $0 }')
|
||||||
echo "Uploading paths to cache " ''${OUT_PATHS}
|
# echo "Uploading paths to cache " ''${OUT_PATHS}
|
||||||
exec ${attic-client}/bin/attic push main ''${OUT_PATHS}
|
# exec ${attic-client}/bin/attic push main ''${OUT_PATHS}
|
||||||
'';
|
# '';
|
||||||
|
|
||||||
sops.defaultSopsFile = ./secrets.yaml;
|
sops.defaultSopsFile = ./secrets.yaml;
|
||||||
sops.secrets = {
|
sops.secrets = {
|
||||||
|
|
Loading…
Reference in a new issue