1
0
Fork 0

Styx: Do not cache to CF anymore

This commit is contained in:
Daniel Kempkens 2023-03-20 13:48:37 +01:00
parent c4cc5cf244
commit baf0cb0b58
Signed by: daniel
SSH key fingerprint: SHA256:Ks/MyhQYcPRQiwMKLAKquWCdCPe3JXlb1WttgnAoSeM
3 changed files with 8 additions and 26 deletions

View file

@ -1,8 +1,5 @@
args@{ pkgs, config, lib, ... }:
let
secret = import ../../secret/hosts/Styx.nix;
in
{
imports = [
../programs/fish.nix
@ -19,8 +16,6 @@ in
../programs/btop.nix
(import ../programs/custom-nix-cache.nix (args // { inherit secret; }))
../programs/fzf.nix
../programs/gpg.nix

View file

@ -26,17 +26,15 @@ switch $os
sudo nixos-rebuild switch --flake .
end
rm -f result
if test $status -eq 0
set system_new (readlink /run/current-system)
rm -f result
if test -e "$HOME/.bin/upload-nifoc-nix-cache"
echo "Updating nifoc-nix-cache ..."
upload-nifoc-nix-cache
end
nvd diff "$system_old" "$system_new"
and test -e "$HOME/.bin/upload-nifoc-nix-cache"
echo "Updating nifoc-nix-cache ..."
upload-nifoc-nix-cache
end
set system_new (readlink /run/current-system)
nvd diff "$system_old" "$system_new"
popd

View file

@ -1,10 +1,3 @@
{ lib, ... }:
let
inherit (lib) optionals;
secret = import ../../secret/hosts/Styx.nix;
in
{
imports = [
../darwin/defaults.nix
@ -26,16 +19,12 @@ in
"https://nix-community.cachix.org"
"https://wurzelpfropf.cachix.org"
"https://nifoc.cachix.org"
] ++ optionals secret.nix-cache.nifoc.enabled [
secret.nix-cache.nifoc.s3Url
];
trusted-public-keys = [
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
"wurzelpfropf.cachix.org-1:ilZwK5a6wJqVr7Fyrzp4blIEkGK+LJT0QrpWr1qBNq0="
"nifoc.cachix.org-1:ymuftq7RgN/lf/iWXFK8gpwDSAGFaGBeliWe9u6q8II="
] ++ optionals secret.nix-cache.nifoc.enabled [
secret.nix-cache.nifoc.publicKeyValue
];
trusted-users = [ "@admin" ];