From bdfddfa09997573e31742c1617355e0786b95720 Mon Sep 17 00:00:00 2001 From: buffet Date: Sat, 25 May 2024 20:43:32 +0200 Subject: [PATCH] fix: supply --accept-flake-config to nix flake commands --- .forgejo/workflows/ci.yaml | 2 +- hosts/ami/upgrade.nix | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.forgejo/workflows/ci.yaml b/.forgejo/workflows/ci.yaml index ef40377..d36c6e0 100644 --- a/.forgejo/workflows/ci.yaml +++ b/.forgejo/workflows/ci.yaml @@ -21,4 +21,4 @@ jobs: with: name: kitchen authToken: '${{ secrets.CACHIX_TOKEN }}' - - run: nix flake check + - run: nix flake check --accept-flake-config diff --git a/hosts/ami/upgrade.nix b/hosts/ami/upgrade.nix index d87212e..1482adb 100644 --- a/hosts/ami/upgrade.nix +++ b/hosts/ami/upgrade.nix @@ -2,7 +2,7 @@ _: { system.autoUpgrade = { enable = true; flake = "https://buffets.kitchen/kitchen/rice/archive/main.tar.gz#ami"; - flags = ["--option" "tarball-ttl" "0"]; + flags = ["--option" "tarball-ttl" "0" "--accept-flake-config"]; dates = "minutely"; allowReboot = true;